Constructs a new default configuration using the given servers.
Constructs a new default configuration using the given servers.
sequence of socket addresses corresponding to server endpoints
a default configuration with the given servers
Used in pattern matching to deconstruct a configuration.
Used in pattern matching to deconstruct a configuration.
selector value
a Some
containing configuration attributes if the selector value is not null
, otherwise None
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:
The type of
config
above is Builder since an implicit conversion occurred when attaching optional attributes using the variouswith
methods. An explicit conversion back to Configuration, which can be accomplished usingbuild()
, is unnecessary since another implicit will perform this function automatically.