public interface ISpincastUndertowConfig
| Modifier and Type | Method and Description |
|---|---|
int |
getWebsocketAutomaticPingIntervalSeconds()
When the automatic WebSocket pings are enabled, this is the
interval (in seconds) between two pings.
|
int |
getWebsocketDefaultClosingCode()
The default code to use when sending a
"closing Websocket connection" event to a peer.
|
String |
getWebsocketDefaultClosingReason()
The default reason to use when sending a
"closing Websocket connection" event to a peer.
|
String |
getWebsocketPingMessageString()
The ping text to use.
|
ThreadFactory |
getWebsocketThreadExecutorForAppEventsThreadFactory()
The
ThreadFactory to use to create threads when
sending WebSocket events to the application. |
int |
getWebsocketThreadExecutorForAppEventsThreadNumber()
The maximum number of concurrent threads used when
sending WebSocket events to the application.
|
int |
getWebsocketThreadExecutorForAppEventsTimeoutAmount()
The timeout
amount before cancelling a task when
sending WebSocket events to the application. |
TimeUnit |
getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit()
The timeout
TimeUnit before cancelling a task when
sending WebSocket events to the application. |
boolean |
isWebsocketAutomaticPing()
If
true, pings will automatically
be sent to peers of a WebSocket endpoint as an
heartbeat. |
boolean isWebsocketAutomaticPing()
true, pings will automatically
be sent to peers of a WebSocket endpoint as an
heartbeat.
Enabled by default.int getWebsocketAutomaticPingIntervalSeconds()
20 seconds.String getWebsocketPingMessageString()
< 125 characters.
Defaults to "__ping"int getWebsocketDefaultClosingCode()
1000, a normal closure.String getWebsocketDefaultClosingReason()
int getWebsocketThreadExecutorForAppEventsThreadNumber()
100.int getWebsocketThreadExecutorForAppEventsTimeoutAmount()
amount before cancelling a task when
sending WebSocket events to the application.
Defaults to 60.TimeUnit getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit()
TimeUnit before cancelling a task when
sending WebSocket events to the application.
Defaults to SECONDS.ThreadFactory getWebsocketThreadExecutorForAppEventsThreadFactory()
ThreadFactory to use to create threads when
sending WebSocket events to the application.
Defaults to null.Copyright © 2016. All rights reserved.