com.datastax.driver.core
Class SocketOptions

java.lang.Object
  extended by 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.


Field Summary
static int DEFAULT_CONNECT_TIMEOUT_MILLIS
           
 
Constructor Summary
SocketOptions()
          Creates a new SocketOptions instance with default values.
 
Method Summary
 int getConnectTimeoutMillis()
           
 Boolean getKeepAlive()
           
 Integer getReceiveBufferSize()
           
 Boolean getReuseAddress()
           
 Integer getSendBufferSize()
           
 Integer getSoLinger()
           
 Boolean getTcpNoDelay()
           
 SocketOptions setConnectTimeoutMillis(int connectTimeoutMillis)
           
 SocketOptions setKeepAlive(boolean keepAlive)
           
 SocketOptions setReceiveBufferSize(int receiveBufferSize)
           
 SocketOptions setReuseAddress(boolean reuseAddress)
           
 SocketOptions setSendBufferSize(int sendBufferSize)
           
 SocketOptions setSoLinger(int soLinger)
           
 SocketOptions setTcpNoDelay(boolean tcpNoDelay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONNECT_TIMEOUT_MILLIS

public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS
See Also:
Constant Field Values
Constructor Detail

SocketOptions

public SocketOptions()
Creates a new SocketOptions instance with default values.

Method Detail

getConnectTimeoutMillis

public int getConnectTimeoutMillis()

setConnectTimeoutMillis

public SocketOptions setConnectTimeoutMillis(int connectTimeoutMillis)

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.