public class ServerSocketOptions extends CommonSocketOptions<ServerSocketOptions>
| Constructor and Description |
|---|
ServerSocketOptions() |
| Modifier and Type | Method and Description |
|---|---|
int |
backlog()
Returns the configured pending connection backlog for the socket.
|
ServerSocketOptions |
backlog(int backlog)
Configures the size of the pending connection backlog for the socket.
|
java.net.ProtocolFamily |
protocolFamily()
Returns the configured protocol family for the socket.
|
ServerSocketOptions |
protocolFamily(java.net.ProtocolFamily protocolFamily)
Configures the protocol family for the socket.
|
boolean |
reuseAddr()
Returns a boolean indicating whether or not
SO_REUSEADDR is enabled |
ServerSocketOptions |
reuseAddr(boolean reuseAddr)
Enables or disables
SO_REUSEADDR. |
keepAlive, keepAlive, linger, linger, prefetch, prefetch, rcvbuf, rcvbuf, sndbuf, sndbuf, tcpNoDelay, tcpNoDelay, timeout, timeoutpublic int backlog()
public ServerSocketOptions backlog(int backlog)
backlog - The size of the backlogthispublic boolean reuseAddr()
SO_REUSEADDR is enabledtrue if SO_REUSEADDR is enabled, false if it is notpublic ServerSocketOptions reuseAddr(boolean reuseAddr)
SO_REUSEADDR.reuseAddr - true to enable SO_REUSEADDR, false to disable itthispublic java.net.ProtocolFamily protocolFamily()
public ServerSocketOptions protocolFamily(java.net.ProtocolFamily protocolFamily)
protocolFamily - the protocol family for the socket, or null for the system default familythis