com.twitter.zk

ZkClient

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
Learn more about member selection
Visibility
  1. Public
  2. All

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val acl: Seq[ACL]

    Default: Creator access

  7. def apply(): Future[ZooKeeper]

    Get a connected ZooKeeper handle

  8. def apply(path: String): ZNode

    Build a ZNode handle using this ZkClient.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val log: Logger

    Attributes
    protected[com.twitter.zk]
  18. val mode: CreateMode

    Default: create persistent nodes

  19. val name: String

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def onSessionEvent(f: PartialFunction[StateEvent, Unit]): Unit

    Attach a listener to receive session events

  24. def release(): Future[Unit]

    Release the connection

  25. val retryPolicy: RetryPolicy

    Default: fail without retrying

  26. def retrying[T](op: (ZooKeeper) ⇒ Future[T]): Future[T]

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

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. 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]
  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def withAcl(a: Seq[ACL]): ZkClient

    Build a ZkClient with another default creation ACL.

  34. def withMode(m: CreateMode): ZkClient

    Build a ZkClient with another default creation mode.

  35. def withRetries(n: Int): ZkClient

    Get a ZkClient with a basic retry policy.

  36. def withRetryPolicy(r: RetryPolicy): ZkClient

    Get a ZkClient with another retry policy.

Inherited from AnyRef

Inherited from Any

Ungrouped