public interface CanHandleDisconnects
Modifier and Type | Method and Description |
---|---|
default void |
addDisconnectionHandler(java.lang.Runnable handler)
Register a new web socket disconnect handler.
|
java.util.List<java.lang.Runnable> |
getDisconnectionHandlers()
Returns a list of all registered web socket disconnection handlers.
|
default void |
removeDisconnectionHandlers()
Removes existing disconnection handlers.
|
java.util.List<java.lang.Runnable> getDisconnectionHandlers()
default void addDisconnectionHandler(java.lang.Runnable handler)
handler
- a callback function, which is going to be executed when web socket disconnect event arrivesdefault void removeDisconnectionHandlers()