public class Configuration extends Object
Constructor and Description |
---|
Configuration() |
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions)
Creates a configuration with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
MetricsOptions |
getMetricsOptions()
Returns the metrics configuration, if metrics are enabled.
|
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).
|
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)
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.public Policies getPolicies()
public SocketOptions getSocketOptions()
public ProtocolOptions getProtocolOptions()
public PoolingOptions getPoolingOptions()
public MetricsOptions getMetricsOptions()
Metrics collection is enabled by default but can be disabled at cluster
construction time through Cluster.Builder.withoutMetrics()
.
null
if metrics are not enabled.Copyright © 2014. All Rights Reserved.