object Configuration
Constructs and deconstructs Configuration values.
A configuration is constructed by first specifying required attributes via Configuration()
and then attaching
optional attributes as necessary. A set of implicit methods conveniently convert between instances of Configuration
and Builder.
Example:
val config = Configuration { ("foo.server.com", 2181) :: ("bar.server.com", 2181) :: Nil } withTimeout { 60 seconds } withWatcher { (event, session) => // ... }
The type of config
above is Builder since an implicit conversion occurred when attaching
optional attributes using the various with
methods. An explicit conversion back to Configuration, which can be
accomplished using build()
, is unnecessary since another implicit will perform this function automatically.
- Alphabetic
- By Inheritance
- Configuration
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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(servers: Seq[InetSocketAddress]): Configuration
Constructs a new default configuration using the given servers.
Constructs a new default configuration using the given servers.
- servers
sequence of socket addresses corresponding to server endpoints
- returns
a default configuration with the given
servers
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def builderToConfig(builder: Builder): Configuration
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- implicit def configToBuilder(config: Configuration): Builder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(config: Configuration): Option[(Seq[InetSocketAddress], String, Duration, (StateEvent, Session) => Unit, Boolean, ExecutionContext)]
Used in pattern matching to deconstruct a configuration.
Used in pattern matching to deconstruct a configuration.
- config
selector value
- returns
a
Some
containing configuration attributes if the selector value is notnull
, otherwiseNone
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])