public class SessionTimeoutListener extends AbstractLoggingBean implements SessionListener, Runnable
AbstractSession
s and checks each of them for timeouts. If
the AbstractSession
has timed out (either auth or idle timeout), the session will be disconnected.AbstractSession.checkForTimeouts()
SessionListener.Event
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 |
sessionEvent(Session session,
SessionListener.Event event)
An event has been triggered
|
public void sessionCreated(Session session)
SessionListener
sessionCreated
in interface SessionListener
session
- The created Session
public void sessionEvent(Session session, SessionListener.Event event)
SessionListener
sessionEvent
in interface SessionListener
session
- The referenced Session
event
- The generated SessionListener.Event
public void sessionClosed(Session s)
SessionListener
sessionClosed
in interface SessionListener
s
- The closed Session
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.