Class SessionTracker
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.websocket.common.SessionTracker
- All Implemented Interfaces:
Dumpable,LifeCycle,WebSocketSessionListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStop()voiddump(Appendable out, String indent) intvoidonSessionClosed(WebSocketSession session) voidonSessionCreated(WebSocketSession session) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStart, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.websocket.common.WebSocketSessionListener
onSessionOpened
-
Constructor Details
-
SessionTracker
public SessionTracker()
-
-
Method Details
-
getSessions
-
onSessionCreated
- Specified by:
onSessionCreatedin interfaceWebSocketSessionListener
-
onSessionClosed
- Specified by:
onSessionClosedin interfaceWebSocketSessionListener
-
doStop
- Overrides:
doStopin classAbstractLifeCycle- Throws:
Exception
-
getNumSessions
-
dump
- Specified by:
dumpin interfaceDumpable- Throws:
IOException
-