Class SessionInactivityTimer
java.lang.Object
com.aspectran.core.component.session.SessionInactivityTimer
The Class 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
ConstructorsConstructorDescriptionSessionInactivityTimer
(AbstractSessionManager sessionManager, ManagedSession session) -
Method Summary
-
Constructor Details
-
SessionInactivityTimer
public SessionInactivityTimer(@NonNull AbstractSessionManager sessionManager, @NonNull ManagedSession session)
-
-
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()
-