Class JsrSessionTracker
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.jsr356.JsrSessionTracker
-
- All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle
,JsrSessionListener
public class JsrSessionTracker extends org.eclipse.jetty.util.component.AbstractLifeCycle implements JsrSessionListener
-
-
Constructor Summary
Constructors Constructor Description JsrSessionTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStop()
java.util.Set<javax.websocket.Session>
getSessions()
void
onSessionClosed(JsrSession session)
void
onSessionOpened(JsrSession session)
-
-
-
Method Detail
-
getSessions
public java.util.Set<javax.websocket.Session> getSessions()
-
onSessionOpened
public void onSessionOpened(JsrSession session)
- Specified by:
onSessionOpened
in interfaceJsrSessionListener
-
onSessionClosed
public void onSessionClosed(JsrSession session)
- Specified by:
onSessionClosed
in interfaceJsrSessionListener
-
doStop
protected void doStop() throws java.lang.Exception
- Overrides:
doStop
in classorg.eclipse.jetty.util.component.AbstractLifeCycle
- Throws:
java.lang.Exception
-
-