public class SocketProperties
extends java.lang.Object
implements java.io.Serializable
Socket properties are described in the javadoc for the JDK's java.net.Socket class. See the JDK documentation for further details.
Constructor and Description |
---|
SocketProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one.
|
int |
getLoginTimeout()
Indicates the value to which the login timeout socket option is set in milliseconds.
|
int |
getReceiveBufferSize()
Indicates the value to which the SO_RCVBUF socket option is set.
|
int |
getSendBufferSize()
Indicates the value to which the SO_SNDBUF socket option is set.
|
int |
getSoLinger()
Indicates the value to which the SO_LINGER socket option is set.
|
int |
getSoTimeout()
Indicates the value to which the SO_TIMEOUT socket option is set.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isKeepAlive()
Indicates the value to which the SO_KEEPALIVE socket option is set.
|
boolean |
isKeepAliveSet()
Indicates if the value of the SO_KEEPALIVE socket option will be set.
|
boolean |
isLoginTimeoutSet()
Indicates if the value of the login timeout socket option will be set.
|
boolean |
isReceiveBufferSizeSet()
Indicates if the value of the SO_RCVBUF socket option will be set.
|
boolean |
isSendBufferSizeSet()
Indicates if the value of the SO_SNDBUF socket option will be set.
|
boolean |
isSoLingerSet()
Indicates if the value of the SO_LINGER socket option will be set.
|
boolean |
isSoTimeoutSet()
Indicates if the value of the SO_TIMEOUT socket option will be set.
|
boolean |
isTcpNoDelay()
Indicates the value to which the TCP_NODELAY socket option is set.
|
boolean |
isTcpNoDelaySet()
Indicates if the value of the TCP_NODELAY socket option will be set.
|
void |
setKeepAlive(boolean keepAlive)
Indicates the value to which the SO_KEEPALIVE socket option should be set.
|
void |
setLoginTimeout(int loginTimeout)
Indicates the value to for timeout when creating a new socket connection in milliseconds.
|
void |
setReceiveBufferSize(int receiveBufferSize)
Indicates the value to which the SO_RCVBUF socket option should be set.
|
void |
setSendBufferSize(int sendBufferSize)
Indicates the value to which the SO_SNDBUF socket option should be set.
|
void |
setSoLinger(int soLinger)
Indicates the value to which the SO_LINGER socket option should be set.
|
void |
setSoTimeout(int soTimeout)
Indicates the value to which the SO_TIMEOUT socket option should be set.
|
void |
setTcpNoDelay(boolean tcpNoDelay)
Indicates the value to which the TCP_NODELAY socket option should be set.
|
void |
unsetKeepAlive()
Indicates that the value of the SO_KEEPALIVE socket option should not be set.
|
void |
unsetReceiveBufferSize()
Indicates that the value of the SO_RCVBUF socket option should not be set.
|
void |
unsetSendBufferSize()
Indicates that the value of the SO_SNDBUF socket option should not be set.
|
void |
unsetSoLinger()
Indicates that the value of the SO_LINGER socket option should not be set.
|
void |
unsetSoTimeout()
Indicates that the value of the SO_TIMEOUT socket option should not be set.
|
void |
unsetTcpNoDelay()
Indicates that the value of the TCP_NODELAY socket option should not be set.
|
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getReceiveBufferSize()
public int getSendBufferSize()
public int getSoLinger()
public int getLoginTimeout()
public int getSoTimeout()
public boolean isKeepAlive()
public boolean isKeepAliveSet()
public boolean isReceiveBufferSizeSet()
public boolean isSendBufferSizeSet()
public boolean isSoLingerSet()
public boolean isLoginTimeoutSet()
public boolean isSoTimeoutSet()
public boolean isTcpNoDelay()
public boolean isTcpNoDelaySet()
public void setKeepAlive(boolean keepAlive)
keepAlive
- true to set SO_KEEPALIVE; false otherwise.public void setLoginTimeout(int loginTimeout)
loginTimeout
- The value in milliseconds.public void setReceiveBufferSize(int receiveBufferSize)
receiveBufferSize
- The value to set SO_RCVBUF, in bytes.public void setSendBufferSize(int sendBufferSize)
sendBufferSize
- The value to set SO_SNDBUF, in bytes.public void setSoLinger(int soLinger)
soLinger
- The value to set SO_LINGER, in seconds.public void setSoTimeout(int soTimeout)
soTimeout
- The value to set SO_TIMEOUT, in milliseconds.public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
- true to set TCP_NODELAY; false otherwise.public void unsetKeepAlive()
public void unsetReceiveBufferSize()
public void unsetSendBufferSize()
public void unsetSoLinger()
public void unsetSoTimeout()
public void unsetTcpNoDelay()