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. | 
| Configuration.Builder | withThreadingOptions(ThreadingOptions threadingOptions)Sets the threading 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)
If this method doesn't get called, the configuration will use the defaults: metrics
 enabled with JMX reporting enabled. To disable metrics, call this method with an instance
 where isEnabled() returns false.
metricsOptions - the metrics options.public Configuration.Builder withQueryOptions(QueryOptions queryOptions)
queryOptions - the query options.public Configuration.Builder withThreadingOptions(ThreadingOptions threadingOptions)
threadingOptions - the threading options to set.public Configuration.Builder withNettyOptions(NettyOptions nettyOptions)
nettyOptions - the Netty options.public Configuration.Builder withCodecRegistry(CodecRegistry codecRegistry)
codecRegistry - the codec registry.public Configuration build()
Any field that hasn't been set explicitly will get its default value.
Copyright © 2012–2025. All rights reserved.