Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.dse |
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 |
---|---|
Configuration.Builder |
Configuration.Builder.withSocketOptions(SocketOptions socketOptions)
Sets the socket options for this cluster.
|
Cluster.Builder |
Cluster.Builder.withSocketOptions(SocketOptions options)
Sets the SocketOptions to use for the newly created Cluster.
|
Modifier and Type | Method and Description |
---|---|
DseCluster.Builder |
DseCluster.Builder.withSocketOptions(SocketOptions options) |