public interface SocketConfiguration
| Modifier and Type | Interface and Description |
|---|---|
static class |
SocketConfiguration.Builder
The
SocketConfiguration builder class. |
| Modifier and Type | Field and Description |
|---|---|
static SocketConfiguration |
DEFAULT
The default socket configuration.
|
static int |
DEFAULT_BACKLOG_SIZE
The default backlog size to configure the server sockets with if no other value
is provided.
|
| Modifier and Type | Method and Description |
|---|---|
int |
backlog()
Returns a maximum length of the queue of incoming connections on the server
socket.
|
InetAddress |
bindAddress()
Returns local address where the server listens on with the server socket.
|
static SocketConfiguration.Builder |
builder()
Creates a builder of
SocketConfiguration class. |
int |
port()
Returns a server port to listen on with the server socket.
|
int |
receiveBufferSize()
Returns proposed value of the TCP receive window that is advertised to the remote peer on the
server socket.
|
SSLContext |
ssl()
Returns a
SSLContext to use with the server socket. |
int |
timeoutMillis()
Returns a server socket timeout in milliseconds or
0 for an infinite timeout. |
static final SocketConfiguration DEFAULT
static final int DEFAULT_BACKLOG_SIZE
int port()
0 then any available ephemeral port will be used.InetAddress bindAddress()
null then listens an all local addresses.null for all local addressesint backlog()
Default value is DEFAULT_BACKLOG_SIZE.
int timeoutMillis()
0 for an infinite timeout.0int receiveBufferSize()
If 0 then use implementation default.
0SSLContext ssl()
SSLContext to use with the server socket. If not null then
the server enforces an SSL communication.static SocketConfiguration.Builder builder()
SocketConfiguration class.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.