Package org.apache.shiro.session.mgt
Interface SessionValidationScheduler
-
- All Known Implementing Classes:
ExecutorServiceSessionValidationScheduler
public interface SessionValidationSchedulerInterface that should be implemented by classes that can control validating sessions on a regular basis. This interface is used as a delegate for session validation by theDefaultSessionManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisableSessionValidation()Disables the session validation job.voidenableSessionValidation()Enables the session validation job.booleanisEnabled()Returnstrueif this Scheduler is enabled and ready to begin validation at the appropriate time,falseotherwise.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Returnstrueif this Scheduler is enabled and ready to begin validation at the appropriate time,falseotherwise. 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.- Returns:
trueif this Scheduler is enabled and ready to begin validation at the appropriate time,falseotherwise.
-
enableSessionValidation
void enableSessionValidation()
Enables the session validation job.
-
disableSessionValidation
void disableSessionValidation()
Disables the session validation job.
-
-