public class SessionTimeoutListener extends AbstractLoggingBean implements SessionListener, Runnable
Session
s 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, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionDisconnect, sessionEstablished, sessionEvent, sessionNegotiationEnd, sessionNegotiationOptionsCreated, sessionNegotiationStart, sessionPeerIdentificationLine, sessionPeerIdentificationReceived, sessionPeerIdentificationSend, validateListener
validateListener
protected final Set<SessionHelper> sessions
public void sessionCreated(Session session)
SessionListener
sessionCreated
in interface SessionListener
session
- The created Session
public void sessionException(Session session, Throwable t)
SessionListener
SessionListener.sessionClosed(Session)
will be called or perhaps has already been calledsessionException
in interface SessionListener
session
- The referenced Session
t
- The caught exceptionpublic void sessionClosed(Session s)
SessionListener
sessionClosed
in interface SessionListener
s
- The closed Session
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.