public class ServerConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerConfiguration.Builder |
| Modifier and Type | Field and Description |
|---|---|
static ServerConfiguration |
DEFAULT |
static boolean |
DEFAULT_ALWAYS_SECURE_WEB_SOCKET_LOCATION |
static int |
DEFAULT_CLOSE_TIMEOUT |
static boolean |
DEFAULT_EVENT_EXECUTOR_ENABLED |
static int |
DEFAULT_EVENT_EXECUTOR_THREAD_NUMBER |
static int |
DEFAULT_HEARTBEAT_INTERVAL |
static int |
DEFAULT_HEARTBEAT_TIMEOUT |
static int |
DEFAULT_MAX_WEB_SOCKET_FRAME_SIZE |
static int |
DEFAULT_PORT |
static String |
DEFAULT_REMOTE_ADDRESS_HEADER |
static SSLContext |
DEFAULT_SSL_CONTEXT |
static String |
DEFAULT_TRANSPORTS |
| Modifier and Type | Method and Description |
|---|---|
static ServerConfiguration.Builder |
builder() |
int |
getCloseTimeout()
The timeout in seconds for the client, when it closes the connection it
still X amounts of seconds to do re open of the connection.
|
int |
getEventExecutorThreadNumber() |
int |
getHeartbeatInterval()
The timeout in seconds for the server, we should receive a heartbeat from
the client within this interval.
|
int |
getHeartbeatTimeout()
The timeout in seconds for the client when it should send a new heart
beat to the server.
|
int |
getMaxWebSocketFrameSize()
Maximum allowable web socket frame payload length.
|
int |
getPort()
Port on which Socket.IO server will be started.
|
String |
getRemoteAddressHeader()
The HTTP header name which is used as a session remote address.
|
SSLContext |
getSslContext()
SSL context which is used to run secure socket.
|
String |
getTransports()
A string with list of allowed transport methods separated by comma.
|
boolean |
isAlwaysSecureWebSocketLocation()
Flag which if set to true will always return secure web socket location protocol ("wss://")
even when connection is established over plain socket.
|
boolean |
isEventExecutorEnabled()
Flag which defines if listener will be executed, true - different thread, false - io-thread.
|
String |
toString() |
public static final ServerConfiguration DEFAULT
public static final int DEFAULT_PORT
public static final int DEFAULT_HEARTBEAT_TIMEOUT
public static final int DEFAULT_HEARTBEAT_INTERVAL
public static final int DEFAULT_CLOSE_TIMEOUT
public static final String DEFAULT_TRANSPORTS
public static final boolean DEFAULT_ALWAYS_SECURE_WEB_SOCKET_LOCATION
public static final String DEFAULT_REMOTE_ADDRESS_HEADER
public static final boolean DEFAULT_EVENT_EXECUTOR_ENABLED
public static final int DEFAULT_EVENT_EXECUTOR_THREAD_NUMBER
public static final int DEFAULT_MAX_WEB_SOCKET_FRAME_SIZE
public static final SSLContext DEFAULT_SSL_CONTEXT
public static ServerConfiguration.Builder builder()
public int getPort()
public SSLContext getSslContext()
public int getHeartbeatTimeout()
public int getCloseTimeout()
public String getTransports()
public int getHeartbeatInterval()
public boolean isAlwaysSecureWebSocketLocation()
public String getRemoteAddressHeader()
public boolean isEventExecutorEnabled()
public int getEventExecutorThreadNumber()
public int getMaxWebSocketFrameSize()
Copyright © 2012–2016. All rights reserved.