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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZkClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract val connector: Connector

    Maintains a connection to ZooKeeper.

    Maintains a connection to ZooKeeper.

    Attributes
    protected[this]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val acl: Seq[ACL]

    Default: Creator access

  5. def apply(): Future[ZooKeeper]

    Get a connected ZooKeeper handle

  6. def apply(path: String): ZNode

    Build a ZNode handle using this ZkClient.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val log: Logger
    Attributes
    protected[zk]
  16. val mode: CreateMode

    Default: create persistent nodes

  17. val name: String
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def onSessionEvent(f: PartialFunction[StateEvent, Unit]): Unit

    Attach a listener to receive session events

  22. def release(): Future[Unit]

    Release the connection

  23. val retryPolicy: RetryPolicy

    Default: fail without retrying

  24. def retrying[T](op: (ZooKeeper) => Future[T]): Future[T]

    Use the current retry policy to perform an operation with a ZooKeeper handle.

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. 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]
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. def withAcl(a: Seq[ACL]): ZkClient

    Build a ZkClient with another default creation ACL.

  32. def withMode(m: CreateMode): ZkClient

    Build a ZkClient with another default creation mode.

  33. def withRetries(n: Int): ZkClient

    Get a ZkClient with a basic retry policy.

  34. def withRetryPolicy(r: RetryPolicy): ZkClient

    Get a ZkClient with another retry policy.

Inherited from AnyRef

Inherited from Any

Ungrouped