Trait/Object

com.twitter.zk

ZkClient

Related Docs: object ZkClient | package zk

Permalink

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. All

Abstract Value Members

  1. abstract val connector: Connector

    Permalink

    Maintains a connection to ZooKeeper.

    Maintains a connection to ZooKeeper.

    Attributes
    protected[this]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val acl: Seq[ACL]

    Permalink

    Default: Creator access

  5. def apply(): Future[ZooKeeper]

    Permalink

    Get a connected ZooKeeper handle

  6. def apply(path: String): ZNode

    Permalink

    Build a ZNode handle using this ZkClient.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  15. val log: Logger

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

    Permalink

    Default: create persistent nodes

  17. val name: String

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Permalink

    Attach a listener to receive session events

  22. def release(): Future[Unit]

    Permalink

    Release the connection

  23. val retryPolicy: RetryPolicy

    Permalink

    Default: fail without retrying

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def transform(_connector: Connector = connector, _acl: Seq[ACL] = acl, _mode: CreateMode = mode, _retryPolicy: RetryPolicy = retryPolicy): ZkClient

    Permalink

    Create a new ZkClient, possibly overriding configuration.

    Create a new ZkClient, possibly overriding configuration.

    Attributes
    protected[this]
  28. final def wait(): Unit

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

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

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

    Permalink

    Build a ZkClient with another default creation ACL.

  32. def withMode(m: CreateMode): ZkClient

    Permalink

    Build a ZkClient with another default creation mode.

  33. def withRetries(n: Int): ZkClient

    Permalink

    Get a ZkClient with a basic retry policy.

  34. def withRetryPolicy(r: RetryPolicy): ZkClient

    Permalink

    Get a ZkClient with another retry policy.

Inherited from AnyRef

Inherited from Any

Ungrouped