Package org.apache.shiro.session.mgt
Interface SessionValidationScheduler
-
- All Known Implementing Classes:
ExecutorServiceSessionValidationScheduler
public interface SessionValidationScheduler
Interface 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 void
disableSessionValidation()
Disables the session validation job.void
enableSessionValidation()
Enables the session validation job.boolean
isEnabled()
Returnstrue
if this Scheduler is enabled and ready to begin validation at the appropriate time,false
otherwise.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Returnstrue
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.- Returns:
true
if this Scheduler is enabled and ready to begin validation at the appropriate time,false
otherwise.
-
enableSessionValidation
void enableSessionValidation()
Enables the session validation job.
-
disableSessionValidation
void disableSessionValidation()
Disables the session validation job.
-
-