com.datastax.driver.core
Class SocketOptions
java.lang.Object
com.datastax.driver.core.SocketOptions
public class SocketOptions
- extends Object
Options to configure low-level socket options for the connections kept
to the Cassandra hosts.
Constructor Summary |
SocketOptions()
Creates a new SocketOptions instance with default values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
SocketOptions
public SocketOptions()
- Creates a new
SocketOptions
instance with default values.
getConnectTimeoutMillis
public int getConnectTimeoutMillis()
- Returns the connection timeout in milliseconds.
- Returns:
- the connection timeout in milliseconds
setConnectTimeoutMillis
public SocketOptions setConnectTimeoutMillis(int connectTimeoutMillis)
- Sets the connection timeout in milliseconds.
- Parameters:
connectTimeoutMillis
- the timeout to set
- Returns:
- this
SocketOptions
.
getKeepAlive
public Boolean getKeepAlive()
setKeepAlive
public SocketOptions setKeepAlive(boolean keepAlive)
getReuseAddress
public Boolean getReuseAddress()
setReuseAddress
public SocketOptions setReuseAddress(boolean reuseAddress)
getSoLinger
public Integer getSoLinger()
setSoLinger
public SocketOptions setSoLinger(int soLinger)
getTcpNoDelay
public Boolean getTcpNoDelay()
setTcpNoDelay
public SocketOptions setTcpNoDelay(boolean tcpNoDelay)
getReceiveBufferSize
public Integer getReceiveBufferSize()
setReceiveBufferSize
public SocketOptions setReceiveBufferSize(int receiveBufferSize)
getSendBufferSize
public Integer getSendBufferSize()
setSendBufferSize
public SocketOptions setSendBufferSize(int sendBufferSize)
Copyright © 2013. All Rights Reserved.