public class SpincastUndertowConfigDefault extends Object implements ISpincastUndertowConfig
| 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()
ISpincastUndertowConfig< 125 characters.
Defaults to "__ping"getWebsocketPingMessageString in interface ISpincastUndertowConfigpublic boolean isWebsocketAutomaticPing()
ISpincastUndertowConfigtrue, pings will automatically
be sent to peers of a WebSocket endpoint as an
heartbeat.
Enabled by default.isWebsocketAutomaticPing in interface ISpincastUndertowConfigpublic int getWebsocketAutomaticPingIntervalSeconds()
ISpincastUndertowConfig20 seconds.getWebsocketAutomaticPingIntervalSeconds in interface ISpincastUndertowConfigpublic int getWebsocketDefaultClosingCode()
ISpincastUndertowConfig1000, a normal closure.getWebsocketDefaultClosingCode in interface ISpincastUndertowConfigpublic String getWebsocketDefaultClosingReason()
ISpincastUndertowConfiggetWebsocketDefaultClosingReason in interface ISpincastUndertowConfigpublic int getWebsocketThreadExecutorForAppEventsThreadNumber()
ISpincastUndertowConfig100.getWebsocketThreadExecutorForAppEventsThreadNumber in interface ISpincastUndertowConfigpublic int getWebsocketThreadExecutorForAppEventsTimeoutAmount()
ISpincastUndertowConfigamount before cancelling a task when
sending WebSocket events to the application.
Defaults to 60.getWebsocketThreadExecutorForAppEventsTimeoutAmount in interface ISpincastUndertowConfigpublic TimeUnit getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit()
ISpincastUndertowConfigTimeUnit before cancelling a task when
sending WebSocket events to the application.
Defaults to SECONDS.getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit in interface ISpincastUndertowConfigpublic ThreadFactory getWebsocketThreadExecutorForAppEventsThreadFactory()
ISpincastUndertowConfigThreadFactory to use to create threads when
sending WebSocket events to the application.
Defaults to null.getWebsocketThreadExecutorForAppEventsThreadFactory in interface ISpincastUndertowConfigpublic int getSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()
ISpincastUndertowConfiggetSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer in interface ISpincastUndertowConfigpublic int getMilliSecondsIncrementWhenWaitingForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()
ISpincastUndertowConfigpublic String getHtmlFormEncoding()
ISpincastUndertowConfigUTF-8.getHtmlFormEncoding in interface ISpincastUndertowConfigCopyright © 2016. All rights reserved.