public class Configuration extends Object
Constructor and Description |
---|
Configuration() |
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions,
QueryOptions queryOptions)
Deprecated.
this constructor is provided for backward compatibility.
|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions,
QueryOptions queryOptions,
NettyOptions nettyOptions)
Creates a configuration with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
MetricsOptions |
getMetricsOptions()
Returns the metrics configuration, if metrics are enabled.
|
NettyOptions |
getNettyOptions()
Returns the
NettyOptions instance for this configuration. |
Policies |
getPolicies()
Returns the policies set for the cluster.
|
PoolingOptions |
getPoolingOptions()
Returns the connection pooling configuration.
|
ProtocolOptions |
getProtocolOptions()
Returns the Cassandra binary protocol level configuration (compression).
|
QueryOptions |
getQueryOptions()
Returns the queries configuration.
|
SocketOptions |
getSocketOptions()
Returns the low-level TCP configuration options used (tcpNoDelay, keepAlive, ...).
|
public Configuration()
public Configuration(Policies policies, ProtocolOptions protocolOptions, PoolingOptions poolingOptions, SocketOptions socketOptions, MetricsOptions metricsOptions, QueryOptions queryOptions, NettyOptions nettyOptions)
policies
- the policies to useprotocolOptions
- the protocol options to usepoolingOptions
- the pooling options to usesocketOptions
- the socket options to usemetricsOptions
- the metrics options, or null to disable metrics.queryOptions
- defaults related to queries.nettyOptions
- the NettyOptions
instance to use@Deprecated public Configuration(Policies policies, ProtocolOptions protocolOptions, PoolingOptions poolingOptions, SocketOptions socketOptions, MetricsOptions metricsOptions, QueryOptions queryOptions)
public Policies getPolicies()
public SocketOptions getSocketOptions()
public ProtocolOptions getProtocolOptions()
public PoolingOptions getPoolingOptions()
public MetricsOptions getMetricsOptions()
Cluster.Builder.withoutMetrics()
.null
if metrics are not enabled.public QueryOptions getQueryOptions()
public NettyOptions getNettyOptions()
NettyOptions
instance for this configuration.NettyOptions
instance for this configuration.