Interface SpincastUndertowConfig
- All Known Implementing Classes:
SpincastUndertowConfigDefault
public interface SpincastUndertowConfig
Configurations for the Spincast Undertow plugin.
We use "@ImplementedBy" to specify the default configurations
to use if none is specified in a Guice module.
-
Method Summary
Modifier and TypeMethodDescriptionThe encoding the use to parse the data from HTML forms.int
The number of milliseconds to sleep between two validations that all endpoints are closed properly before calling the killing server.stop() method.int
The number of seconds max to wait for all endpoints to be closed properly before calling the killing server.stop() method.int
When the automatic WebSocket pings are enabled, this is the interval (in seconds) between two pings.int
The default code to use when sending a "closing Websocket connection" event to a peer.The default reason to use when sending a "closing Websocket connection" event to a peer.The ping text to use.TheThreadFactory
to use to create threads when sending WebSocket events to the application.int
The maximum number of concurrent threads used when sending WebSocket events to the application.int
The timeoutamount
before cancelling a task when sending WebSocket events to the application.The timeoutTimeUnit
before cancelling a task when sending WebSocket events to the application.boolean
ShouldLearningPushHandler
be enabled?boolean
Iftrue
, pings will automatically be sent to peers of a WebSocket endpoint as an heartbeat.
-
Method Details
-
isWebsocketAutomaticPing
boolean isWebsocketAutomaticPing()Iftrue
, pings will automatically be sent to peers of a WebSocket endpoint as an heartbeat. Enabled by default. -
getWebsocketAutomaticPingIntervalSeconds
int getWebsocketAutomaticPingIntervalSeconds()When the automatic WebSocket pings are enabled, this is the interval (in seconds) between two pings. Defaults to20
seconds. -
getWebsocketPingMessageString
String getWebsocketPingMessageString()The ping text to use. Must be< 125
characters. Defaults to"__ping"
-
getWebsocketDefaultClosingCode
int getWebsocketDefaultClosingCode()The default code to use when sending a "closing Websocket connection" event to a peer. Valid codes can be found here Defaults to1000
, a normal closure. -
getWebsocketDefaultClosingReason
String getWebsocketDefaultClosingReason()The default reason to use when sending a "closing Websocket connection" event to a peer. Defaults to an empty message. -
getWebsocketThreadExecutorForAppEventsThreadNumber
int getWebsocketThreadExecutorForAppEventsThreadNumber()The maximum number of concurrent threads used when sending WebSocket events to the application. Defaults to100
. -
getWebsocketThreadExecutorForAppEventsTimeoutAmount
int getWebsocketThreadExecutorForAppEventsTimeoutAmount()The timeoutamount
before cancelling a task when sending WebSocket events to the application. Defaults to60
. -
getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit
TimeUnit getWebsocketThreadExecutorForAppEventsTimeoutTimeUnit()The timeoutTimeUnit
before cancelling a task when sending WebSocket events to the application. Defaults toSECONDS
. -
getWebsocketThreadExecutorForAppEventsThreadFactory
ThreadFactory getWebsocketThreadExecutorForAppEventsThreadFactory()TheThreadFactory
to use to create threads when sending WebSocket events to the application. Defaults tonull
. -
getSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer
int getSecondsToWaitForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()The number of seconds max to wait for all endpoints to be closed properly before calling the killing server.stop() method. -
getMilliSecondsIncrementWhenWaitingForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer
int getMilliSecondsIncrementWhenWaitingForWebSocketEndpointsToBeProperlyClosedBeforeKillingTheServer()The number of milliseconds to sleep between two validations that all endpoints are closed properly before calling the killing server.stop() method. -
getHtmlFormEncoding
String getHtmlFormEncoding()The encoding the use to parse the data from HTML forms. Default toUTF-8
. -
isEnableLearningPushHandler
boolean isEnableLearningPushHandler()ShouldLearningPushHandler
be enabled?http://undertow.io/blog/2015/03/25/Server-Push.html
Defaults to
false
.
-