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.
|
ProtocolFamily |
protocolFamily()
Returns the configured protocol family for the socket.
|
ServerSocketOptions |
protocolFamily(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, timeout
public int backlog()
public ServerSocketOptions backlog(int backlog)
backlog
- The size of the backlogthis
public 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 itthis
public ProtocolFamily protocolFamily()
public ServerSocketOptions protocolFamily(ProtocolFamily protocolFamily)
protocolFamily
- the protocol family for the socket, or null for the system default familythis
Copyright © 2016. All rights reserved.