public interface WsSessionListener
Session.
When a new websocket client connects, this object's sessionAdded() method will be called
informing this object that a new client is ready to begin sending commands over the websocket.
When a old websocket client disconnects, this object's sessionRemoved() method will be called
informing this object that it should clean up any resources or other connections that are no longer
needed now that the client has gone away.
Note on concurrency: The implementors are warranted that sessionAdded() will be called before
sessionRemoved() and that there will be no overlapping calls of these methods from distinct threads. Further
best effort will be done to call sessionRemoved() for all existing listeners on application exit.
| Modifier and Type | Method and Description |
|---|---|
void |
sessionAdded()
Notifies this listener that the
Session to which this listener is attached was successfully added to
WsSessions. |
void |
sessionRemoved()
Notifies this listener that the
Session to which this listener is attached was removed from
WsSessions. |
void sessionAdded()
Session to which this listener is attached was successfully added to
WsSessions.void sessionRemoved()
Session to which this listener is attached was removed from
WsSessions.Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.