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)
Sets whether to enable TCP keepalive.
|
SocketOptions |
SocketOptions.setReadTimeoutMillis(int readTimeoutMillis)
Sets the per-host read timeout in milliseconds.
|
SocketOptions |
SocketOptions.setReceiveBufferSize(int receiveBufferSize)
Sets a hint to the size of the underlying buffers for incoming network I/O.
|
SocketOptions |
SocketOptions.setReuseAddress(boolean reuseAddress)
Sets whether to enable reuse-address.
|
SocketOptions |
SocketOptions.setSendBufferSize(int sendBufferSize)
Sets a hint to the size of the underlying buffers for outgoing network I/O.
|
SocketOptions |
SocketOptions.setSoLinger(int soLinger)
Sets the linger-on-close timeout.
|
SocketOptions |
SocketOptions.setTcpNoDelay(boolean tcpNoDelay)
Sets whether to disable Nagle's algorithm.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withSocketOptions(SocketOptions options)
Sets the SocketOptions to use for the newly created Cluster.
|
Constructor and Description |
---|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions,
QueryOptions queryOptions,
NettyOptions nettyOptions)
Creates a configuration with the specified parameters.
|
Copyright © 2012–2015. All rights reserved.