trait ZkClient extends AnyRef
An Asynchronous ZooKeeper Client API.
A ZkClient instance is configured with settings and defaults (like a retry policy) and is attached to underlying Connector. This allows new, immutable ZkClient instances to be created with alternative settings on the same underlying Connector.
- Alphabetic
- By Inheritance
- ZkClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val acl: Seq[ACL]
Default: Creator access
- def apply(): Future[ZooKeeper]
Get a connected ZooKeeper handle
- def apply(path: String): ZNode
Build a ZNode handle using this ZkClient.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val log: Logger
- Attributes
- protected[zk]
- val mode: CreateMode
Default: create persistent nodes
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def onSessionEvent(f: PartialFunction[StateEvent, Unit]): Unit
Attach a listener to receive session events
- def release(): Future[Unit]
Release the connection
- val retryPolicy: RetryPolicy
Default: fail without retrying
- def retrying[T](op: (ZooKeeper) => Future[T]): Future[T]
Use the current retry policy to perform an operation with a ZooKeeper handle.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transform(_connector: Connector = connector, _acl: Seq[ACL] = acl, _mode: CreateMode = mode, _retryPolicy: RetryPolicy = retryPolicy): ZkClient
Create a new ZkClient, possibly overriding configuration.
Create a new ZkClient, possibly overriding configuration.
- Attributes
- protected[this]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withAcl(a: Seq[ACL]): ZkClient
Build a ZkClient with another default creation ACL.
- def withMode(m: CreateMode): ZkClient
Build a ZkClient with another default creation mode.
- def withRetries(n: Int): ZkClient
Get a ZkClient with a basic retry policy.
- def withRetryPolicy(r: RetryPolicy): ZkClient
Get a ZkClient with another retry policy.