public class SessionTracker extends AbstractLifeCycle implements WebSocketSessionListener, Dumpable
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Constructor and Description |
|---|
SessionTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(Appendable out,
String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.
|
Set<WebSocketSession> |
getSessions() |
void |
onSessionClosed(WebSocketSession session) |
void |
onSessionCreated(WebSocketSession session) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitonSessionOpeneddump, dump, dumpContainer, dumpIterable, dumpMapEntries, dumpObject, dumpObjects, dumpSelf, namedpublic Set<WebSocketSession> getSessions()
public void onSessionCreated(WebSocketSession session)
onSessionCreated in interface WebSocketSessionListenerpublic void onSessionClosed(WebSocketSession session)
onSessionClosed in interface WebSocketSessionListenerpublic void dump(Appendable out, String indent) throws IOException
Dumpabledump in interface Dumpableout - The appendable to dump toindent - The indent to apply after any new lines.IOException - if unable to write to AppendableCopyright © 2010 - 2020 Adobe. All Rights Reserved