Class SessionTracker
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.SessionTracker
-
- All Implemented Interfaces:
LifeCycle,WebSocketSessionListener
public class SessionTracker extends AbstractLifeCycle implements WebSocketSessionListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description SessionTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStop()Method to override to stop the lifecyclejava.util.Collection<Session>getSessions()voidonWebSocketSessionClosed(Session session)voidonWebSocketSessionOpened(Session session)-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
-
-
-
Method Detail
-
getSessions
public java.util.Collection<Session> getSessions()
-
onWebSocketSessionOpened
public void onWebSocketSessionOpened(Session session)
- Specified by:
onWebSocketSessionOpenedin interfaceWebSocketSessionListener
-
onWebSocketSessionClosed
public void onWebSocketSessionClosed(Session session)
- Specified by:
onWebSocketSessionClosedin interfaceWebSocketSessionListener
-
doStop
protected void doStop() throws java.lang.ExceptionDescription copied from class:AbstractLifeCycleMethod to override to stop the lifecycle- Overrides:
doStopin classAbstractLifeCycle- Throws:
java.lang.Exception- If there was a problem stopping. Will cause a transition to FAILED state
-
-