A D E G I P R S W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addConnection(Session) - Method in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Registers
connection
for pinging.
D
- DEFAULT_FAILURE_LIMIT - Static variable in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Arbitrarily chosen number.
- DEFAULT_INTERVAL - Static variable in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Majority of proxy and NAT routers have timeout of at least 60s.
- DEFAULT_PING_SIZE - Static variable in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Economic value to reduce use of
Random
.
E
- EndpointUtils - Interface in pl.morgwai.base.servlet.utils
-
Some static helper functions related to
Endpoint
s.
G
- getNumberOfConnections() - Method in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Returns the number of currently registered connections.
I
- isOnClose(Method) - Static method in interface pl.morgwai.base.servlet.utils.EndpointUtils
-
Checks if
method
is either annotated withOnClose
or overridesEndpoint.onClose(Session, CloseReason)
. - isOnError(Method) - Static method in interface pl.morgwai.base.servlet.utils.EndpointUtils
-
Checks if
method
is either annotated withOnError
or overridesEndpoint.onError(Session, Throwable)
. - isOnOpen(Method) - Static method in interface pl.morgwai.base.servlet.utils.EndpointUtils
-
Checks if
method
is either annotated withOnOpen
or overridesEndpoint.onOpen(Session, EndpointConfig)
.
P
- pl.morgwai.base.servlet.utils - package pl.morgwai.base.servlet.utils
R
- removeConnection(Session) - Method in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Deregisters
connection
.
S
- stop() - Method in class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Stops the service.
W
- WebsocketPingerService - Class in pl.morgwai.base.servlet.utils
-
Automatically pings and handles pongs from websocket connections.
- WebsocketPingerService() - Constructor for class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Calls
WebsocketPingerService
(
(ping-pong mode).DEFAULT_INTERVAL
,DEFAULT_FAILURE_LIMIT
,DEFAULT_PING_SIZE
, false) - WebsocketPingerService(int) - Constructor for class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Calls
WebsocketPingerService
(intervalSeconds, false)
(keep-alive-only mode). - WebsocketPingerService(int, boolean) - Constructor for class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Configures and starts the service in keep-alive-only mode: just 1 byte is sent each time and responses are not expected.
- WebsocketPingerService(int, int, int) - Constructor for class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Calls
WebsocketPingerService(intervalSeconds, failureLimit, pingSize, false)
(ping-pong mode). - WebsocketPingerService(int, int, int, boolean) - Constructor for class pl.morgwai.base.servlet.utils.WebsocketPingerService
-
Configures and starts the service in ping-pong mode.
All Classes All Packages