public class SpincastUndertowConfigDefault extends Object implements SpincastUndertowConfig
| Constructor and Description |
|---|
SpincastUndertowConfigDefault() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHtmlFormEncoding()
The encoding the use to parse the data from HTML forms.
|
int |
getMilliSecondsIncrementWhenWaitingForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()
The number of milliseconds to sleep between two validations that all
endpoints are closed properly before calling the killing server.stop() method.
|
int |
getSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()
The number of seconds max to wait for all endpoints to be closed properly
before calling the killing server.stop() method.
|
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. |
public String getWebsocketPingMessageString()
SpincastUndertowConfig< 125 characters.
Defaults to "__ping"getWebsocketPingMessageString in interface SpincastUndertowConfigpublic boolean isWebsocketAutomaticPing()
SpincastUndertowConfigtrue, pings will automatically
be sent to peers of a WebSocket endpoint as an
heartbeat.
Enabled by default.isWebsocketAutomaticPing in interface SpincastUndertowConfigpublic int getWebsocketAutomaticPingIntervalSeconds()
SpincastUndertowConfig20 seconds.getWebsocketAutomaticPingIntervalSeconds in interface SpincastUndertowConfigpublic int getWebsocketDefaultClosingCode()
SpincastUndertowConfig1000, a normal closure.getWebsocketDefaultClosingCode in interface SpincastUndertowConfigpublic String getWebsocketDefaultClosingReason()
SpincastUndertowConfiggetWebsocketDefaultClosingReason in interface SpincastUndertowConfigpublic int getWebsocketThreadExecutorForAppEventsThreadNumber()
SpincastUndertowConfig100.getWebsocketThreadExecutorForAppEventsThreadNumber in interface SpincastUndertowConfigpublic int getWebsocketThreadExecutorForAppEventsTimeoutAmount()
SpincastUndertowConfigamount before cancelling a task when
sending WebSocket events to the application.
Defaults to 60.getWebsocketThreadExecutorForAppEventsTimeoutAmount in interface SpincastUndertowConfigpublic TimeUnit getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit()
SpincastUndertowConfigTimeUnit before cancelling a task when
sending WebSocket events to the application.
Defaults to SECONDS.getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit in interface SpincastUndertowConfigpublic ThreadFactory getWebsocketThreadExecutorForAppEventsThreadFactory()
SpincastUndertowConfigThreadFactory to use to create threads when
sending WebSocket events to the application.
Defaults to null.getWebsocketThreadExecutorForAppEventsThreadFactory in interface SpincastUndertowConfigpublic int getSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()
SpincastUndertowConfiggetSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer in interface SpincastUndertowConfigpublic int getMilliSecondsIncrementWhenWaitingForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()
SpincastUndertowConfigpublic String getHtmlFormEncoding()
SpincastUndertowConfigUTF-8.getHtmlFormEncoding in interface SpincastUndertowConfigCopyright © 2017. All rights reserved.