Class

com.twitter.zk.NativeConnector

Connection

Related Doc: package NativeConnector

Permalink

class Connection extends AnyRef

Maintains connection and ensures all session events are published. Once a connection is released, it may not be re-opened.

apply() and release() must not be called concurrently. This is enforced by NativeConnector.

Attributes
protected
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Connection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Connection(connectString: String, connectTimeout: Option[Duration], sessionTimeout: Duration, authenticate: Option[AuthInfo], timer: Timer, log: Logger)

    Permalink

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. def apply(): Future[ZooKeeper]

    Permalink

    Obtain a ZooKeeper connection

    Obtain a ZooKeeper connection

    There must not be concurrent calls to this method and/or release(); this is enforced by NativeConnector.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val connectPromise: Promise[ZooKeeper]

    Permalink
    Attributes
    protected[this]
  8. lazy val connected: Future[ZooKeeper]

    Permalink

    A ZooKeeper handle that will error if connectTimeout is specified and exceeded.

  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. def mkZooKeeper: ZooKeeper

    Permalink
    Attributes
    protected[this]
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def release(): Future[Unit]

    Permalink
  20. val releasePromise: Promise[Unit]

    Permalink
    Attributes
    protected[this]
  21. val released: Future[Unit]

    Permalink
  22. val sessionBroker: EventBroker

    Permalink
    Attributes
    protected[this]
  23. val sessionEvents: Offer[StateEvent]

    Permalink

    Publish session events, but intercept Connected events and use them to satisfy the pending connection promise if possible, and add the authentication handle.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. var zookeeper: Option[ZooKeeper]

    Permalink
    Attributes
    protected[this]

Inherited from AnyRef

Inherited from Any

Ungrouped