Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
SocketOptions |
Configuration.getSocketOptions()
Returns the low-level TCP configuration options used (tcpNoDelay, keepAlive, ...).
|
SocketOptions |
SocketOptions.setConnectTimeoutMillis(int connectTimeoutMillis)
Sets the connection timeout in milliseconds.
|
SocketOptions |
SocketOptions.setKeepAlive(boolean keepAlive) |
SocketOptions |
SocketOptions.setReadTimeoutMillis(int readTimeoutMillis)
Sets the per-host read timeout in milliseconds.
|
SocketOptions |
SocketOptions.setReceiveBufferSize(int receiveBufferSize) |
SocketOptions |
SocketOptions.setReuseAddress(boolean reuseAddress) |
SocketOptions |
SocketOptions.setSendBufferSize(int sendBufferSize) |
SocketOptions |
SocketOptions.setSoLinger(int soLinger) |
SocketOptions |
SocketOptions.setTcpNoDelay(boolean tcpNoDelay) |
SocketOptions |
Cluster.Builder.socketOptions()
Deprecated.
you are now encouraged to use the
Cluster.Builder.withPoolingOptions(com.datastax.driver.core.PoolingOptions)
method. This method is deprecated and will be removed in the next major
version of the driver. |
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withSocketOptions(SocketOptions options)
Set the SocketOptions to use for the newly created Cluster.
|
Constructor and Description |
---|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions)
Creates a configuration with the specified parameters.
|
Copyright © 2014. All Rights Reserved.