public interface TcpSocketProperties
Modifier and Type | Method and Description |
---|---|
Integer |
getClientTimeout()
This sets the SO_TIMEOUT value on client sockets.
|
Boolean |
getKeepAlive()
Enables SO_KEEPALIVE behavior on open sockets.
|
Integer |
getLinger()
This sets the SO_LINGER value.
|
Integer |
getReceiveBufferSize()
The size of the buffer (in bytes) used when receiving data, set on the socket itself.
|
Integer |
getSendBufferSize()
The size of the buffer (in bytes) used when sending data, set on the socket itself.
|
Boolean |
getSendTcpNoDelay()
If set, transmitted data is not collected together for greater efficiency but sent immediately.
|
Integer getSendBufferSize()
Integer getReceiveBufferSize()
Integer getClientTimeout()
A value of 0 (the socket's default) causes the read to wait indefinitely (if no data arrives).
Boolean getSendTcpNoDelay()
Defaults to true
even though Socket default is false because optimizing to reduce amount of network traffic over
latency is hardly ever a concern today.
Integer getLinger()
A value of null
(default) disables linger on the socket.
Boolean getKeepAlive()
This is a property on the socket itself and is used by a server socket to control whether connections to the server are kept alive before they are recycled.
Copyright © 2018. All rights reserved.