public class SessionTimeoutListener extends AbstractLoggingBean implements SessionListener, Runnable
Sessions and checks each of them for timeouts. If the
AbstractSession has timed out (either authentication or idle timeout), the session will be disconnected.SessionHelper.checkForTimeouts()SessionListener.Event| Modifier and Type | Field and Description |
|---|---|
protected Set<SessionHelper> |
sessions |
log| Constructor and Description |
|---|
SessionTimeoutListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
sessionClosed(Session s)
A session has been closed
|
void |
sessionCreated(Session session)
A new session just been created
|
void |
sessionException(Session session,
Throwable t)
An exception was caught and the session will be closed (if not already so).
|
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsessionDisconnect, sessionEstablished, sessionEvent, sessionNegotiationEnd, sessionNegotiationOptionsCreated, sessionNegotiationStart, sessionPeerIdentificationLine, sessionPeerIdentificationReceived, sessionPeerIdentificationSend, validateListenervalidateListenerprotected final Set<SessionHelper> sessions
public void sessionCreated(Session session)
SessionListenersessionCreated in interface SessionListenersession - The created Sessionpublic void sessionException(Session session, Throwable t)
SessionListenerSessionListener.sessionClosed(Session) will be called or perhaps has already been calledsessionException in interface SessionListenersession - The referenced Sessiont - The caught exceptionpublic void sessionClosed(Session s)
SessionListenersessionClosed in interface SessionListeners - The closed SessionCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.