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
- Alphabetic
- By Inheritance
Inherited
- Connection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val connectPromise: Promise[ZooKeeper]
- Attributes
- protected[this]
- lazy val connected: Future[ZooKeeper]
A ZooKeeper handle that will error if connectTimeout is specified and exceeded.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mkZooKeeper: ZooKeeper
- Attributes
- protected[this]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def release(): Future[Unit]
- val releasePromise: Promise[Unit]
- Attributes
- protected[this]
- val released: Future[Unit]
- val sessionBroker: EventBroker
- Attributes
- protected[this]
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- var zookeeper: Option[ZooKeeper]
- Attributes
- protected[this]