public static class Configuration.Builder extends Object
Configuration
object.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Configuration |
build()
Builds the final object from this builder.
|
Configuration.Builder |
withCodecRegistry(CodecRegistry codecRegistry)
Sets the codec registry for this cluster.
|
Configuration.Builder |
withMetricsOptions(MetricsOptions metricsOptions)
Sets the metrics options for this cluster.
|
Configuration.Builder |
withNettyOptions(NettyOptions nettyOptions)
Sets the Netty options for this cluster.
|
Configuration.Builder |
withPolicies(Policies policies)
Sets the policies for this cluster.
|
Configuration.Builder |
withPoolingOptions(PoolingOptions poolingOptions)
Sets the pooling options for this cluster.
|
Configuration.Builder |
withProtocolOptions(ProtocolOptions protocolOptions)
Sets the protocol options for this cluster.
|
Configuration.Builder |
withQueryOptions(QueryOptions queryOptions)
Sets the query options for this cluster.
|
Configuration.Builder |
withSocketOptions(SocketOptions socketOptions)
Sets the socket options for this cluster.
|
public Configuration.Builder withPolicies(Policies policies)
policies
- the policies.public Configuration.Builder withProtocolOptions(ProtocolOptions protocolOptions)
protocolOptions
- the protocol options.public Configuration.Builder withPoolingOptions(PoolingOptions poolingOptions)
poolingOptions
- the pooling options.public Configuration.Builder withSocketOptions(SocketOptions socketOptions)
socketOptions
- the socket options.public Configuration.Builder withMetricsOptions(MetricsOptions metricsOptions)
isEnabled()
returns false.metricsOptions
- the metrics options.public Configuration.Builder withQueryOptions(QueryOptions queryOptions)
queryOptions
- the query options.public Configuration.Builder withNettyOptions(NettyOptions nettyOptions)
nettyOptions
- the Netty options.public Configuration.Builder withCodecRegistry(CodecRegistry codecRegistry)
codecRegistry
- the codec registry.public Configuration build()