|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.config.SocketOptions
public class SocketOptions
TCP Socket options
| Field Summary | |
|---|---|
static int |
DEFAULT_BUFFER_SIZE_BYTE
default buffer size of Bytes |
static int |
KILO_BYTE
constant for kilobyte |
| Constructor Summary | |
|---|---|
SocketOptions()
|
|
| Method Summary | |
|---|---|
int |
getBufferSize()
Gets the SO_SNDBUF and SO_RCVBUF options to the specified value in KB |
int |
getLingerSeconds()
Gets SO_LINGER with the specified linger time in seconds |
boolean |
isKeepAlive()
SO_KEEPALIVE socket option |
boolean |
isReuseAddress()
SO_REUSEADDR socket option. |
boolean |
isTcpNoDelay()
TCP_NODELAY socket option |
SocketOptions |
setBufferSize(int bufferSize)
Sets the SO_SNDBUF and SO_RCVBUF options to the specified value in KB |
SocketOptions |
setKeepAlive(boolean keepAlive)
Enable/disable SO_KEEPALIVE socket option. |
SocketOptions |
setLingerSeconds(int lingerSeconds)
Enable/disable SO_LINGER with the specified linger time in seconds |
SocketOptions |
setReuseAddress(boolean reuseAddress)
Enable/disable the SO_REUSEADDR socket option. |
SocketOptions |
setTcpNoDelay(boolean tcpNoDelay)
Enable/disable TCP_NODELAY socket option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int KILO_BYTE
public static final int DEFAULT_BUFFER_SIZE_BYTE
| Constructor Detail |
|---|
public SocketOptions()
| Method Detail |
|---|
public boolean isTcpNoDelay()
public SocketOptions setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay -
public boolean isKeepAlive()
public SocketOptions setKeepAlive(boolean keepAlive)
keepAlive - enabled if true
public boolean isReuseAddress()
public SocketOptions setReuseAddress(boolean reuseAddress)
reuseAddress - enabled if true
public int getLingerSeconds()
public SocketOptions setLingerSeconds(int lingerSeconds)
lingerSeconds - value in seconds
public int getBufferSize()
public SocketOptions setBufferSize(int bufferSize)
bufferSize - KB value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||