A D E G I P R S W 
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 Endpoints.

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 with OnClose or overrides Endpoint.onClose(Session, CloseReason).
isOnError(Method) - Static method in interface pl.morgwai.base.servlet.utils.EndpointUtils
Checks if method is either annotated with OnError or overrides Endpoint.onError(Session, Throwable).
isOnOpen(Method) - Static method in interface pl.morgwai.base.servlet.utils.EndpointUtils
Checks if method is either annotated with OnOpen or overrides Endpoint.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
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
WebsocketPingerService(int, int, int, boolean) - Constructor for class pl.morgwai.base.servlet.utils.WebsocketPingerService
Configures and starts the service in ping-pong mode.
A D E G I P R S W 
All Classes All Packages