Package org.eclipse.jetty.session
Class SessionInactivityTimer
java.lang.Object
org.eclipse.jetty.session.SessionInactivityTimer
SessionInactivityTimer
Each Session has a timer associated with it that fires whenever it has
been idle (ie not accessed by a request) for a configurable amount of
time, or the Session expires.
The timer is only scheduled when all Requests have exited the Session.
If a request enters a Session whose timer is active, it is cancelled.
-
Constructor Summary
ConstructorDescriptionSessionInactivityTimer
(SessionManager sessionManager, ManagedSession session, Scheduler scheduler) -
Method Summary
-
Constructor Details
-
SessionInactivityTimer
public SessionInactivityTimer(SessionManager sessionManager, ManagedSession session, Scheduler scheduler)
-
-
Method Details
-
schedule
public void schedule(long time) - Parameters:
time
- the timeout to set; -1 means that the timer will not be scheduled
-
cancel
public void cancel() -
destroy
public void destroy()
-