public class SessionTracker extends AbstractLifeCycle implements WebSocketSessionListener
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Constructor and Description |
---|
SessionTracker() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStop() |
java.util.Set<WebSocketSession> |
getSessions() |
void |
onSessionClosed(WebSocketSession session) |
void |
onSessionOpened(WebSocketSession session) |
addLifeCycleListener, doStart, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
public java.util.Set<WebSocketSession> getSessions()
public void onSessionOpened(WebSocketSession session)
onSessionOpened
in interface WebSocketSessionListener
public void onSessionClosed(WebSocketSession session)
onSessionClosed
in interface WebSocketSessionListener
protected void doStop() throws java.lang.Exception
doStop
in class AbstractLifeCycle
java.lang.Exception
Copyright © 1995–2019 Webtide. All rights reserved.