Packages

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

Instance Constructors

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

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

    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
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val connectPromise: Promise[ZooKeeper]
    Attributes
    protected[this]
  8. lazy val connected: Future[ZooKeeper]

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

  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. def mkZooKeeper: ZooKeeper
    Attributes
    protected[this]
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def release(): Future[Unit]
  20. val releasePromise: Promise[Unit]
    Attributes
    protected[this]
  21. val released: Future[Unit]
  22. val sessionBroker: EventBroker
    Attributes
    protected[this]
  23. val sessionEvents: Offer[StateEvent]

    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
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. var zookeeper: Option[ZooKeeper]
    Attributes
    protected[this]

Inherited from AnyRef

Inherited from Any

Ungrouped