Class SessionTracker
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.SessionTracker
-
- All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle,WebSocketSessionListener
public class SessionTracker extends org.eclipse.jetty.util.component.AbstractLifeCycle implements WebSocketSessionListener
-
-
Constructor Summary
Constructors Constructor Description SessionTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStop()java.util.Set<WebSocketSession>getSessions()voidonSessionClosed(WebSocketSession session)voidonSessionOpened(WebSocketSession session)
-
-
-
Method Detail
-
getSessions
public java.util.Set<WebSocketSession> getSessions()
-
onSessionOpened
public void onSessionOpened(WebSocketSession session)
- Specified by:
onSessionOpenedin interfaceWebSocketSessionListener
-
onSessionClosed
public void onSessionClosed(WebSocketSession session)
- Specified by:
onSessionClosedin interfaceWebSocketSessionListener
-
doStop
protected void doStop() throws java.lang.Exception- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
java.lang.Exception
-
-