Class SessionTracker
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.SessionTracker
-
- All Implemented Interfaces:
Dumpable
,LifeCycle
,WebSocketSessionListener
@Deprecated(since="2021-05-27") public class SessionTracker extends AbstractLifeCycle implements WebSocketSessionListener, Dumpable
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description SessionTracker()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
dump(java.lang.Appendable out, java.lang.String indent)
Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.int
getNumSessions()
Deprecated.java.util.Set<WebSocketSession>
getSessions()
Deprecated.void
onSessionClosed(WebSocketSession session)
Deprecated.void
onSessionCreated(WebSocketSession session)
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.websocket.common.WebSocketSessionListener
onSessionOpened
-
-
-
-
Method Detail
-
getSessions
public java.util.Set<WebSocketSession> getSessions()
Deprecated.
-
onSessionCreated
public void onSessionCreated(WebSocketSession session)
Deprecated.- Specified by:
onSessionCreated
in interfaceWebSocketSessionListener
-
onSessionClosed
public void onSessionClosed(WebSocketSession session)
Deprecated.- Specified by:
onSessionClosed
in interfaceWebSocketSessionListener
-
getNumSessions
@ManagedAttribute("Total number of active WebSocket Sessions") public int getNumSessions()
Deprecated.
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Deprecated.Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
-
-