org.jsecurity.session.mgt
Class ExecutorServiceSessionValidationScheduler
java.lang.Object
org.jsecurity.session.mgt.ExecutorServiceSessionValidationScheduler
- All Implemented Interfaces:
- Runnable, SessionValidationScheduler
public class ExecutorServiceSessionValidationScheduler
- extends Object
- implements SessionValidationScheduler, Runnable
SessionValidationScheduler implementation that uses a
ScheduledExecutorService to call ValidatingSessionManager.validateSessions() every
interval milliseconds.
- Since:
- 0.9
- Author:
- Les Hazlewood
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionManager
ValidatingSessionManager sessionManager
ExecutorServiceSessionValidationScheduler
public ExecutorServiceSessionValidationScheduler()
ExecutorServiceSessionValidationScheduler
public ExecutorServiceSessionValidationScheduler(ValidatingSessionManager sessionManager)
getSessionManager
public ValidatingSessionManager getSessionManager()
setSessionManager
public void setSessionManager(ValidatingSessionManager sessionManager)
getInterval
public long getInterval()
setInterval
public void setInterval(long interval)
isEnabled
public boolean isEnabled()
- Description copied from interface:
SessionValidationScheduler
- Returns
true if this Scheduler is enabled and ready to begin validation at the appropriate time,
false otherwise.
It does not indicate if the validation is actually executing at that instant - only that it is prepared
to do so at the appropriate time.
- Specified by:
isEnabled in interface SessionValidationScheduler
- Returns:
true if this Scheduler is enabled and ready to begin validation at the appropriate time,
false otherwise.
enableSessionValidation
public void enableSessionValidation()
- Description copied from interface:
SessionValidationScheduler
- Enables the session validation job.
- Specified by:
enableSessionValidation in interface SessionValidationScheduler
run
public void run()
- Specified by:
run in interface Runnable
disableSessionValidation
public void disableSessionValidation()
- Description copied from interface:
SessionValidationScheduler
- Disables the session validation job.
- Specified by:
disableSessionValidation in interface SessionValidationScheduler
Copyright © 2004-2008 JSecurity.