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 the DefaultSessionManager

Since:
0.1
See Also:
AbstractValidatingSessionManager.setSessionValidationScheduler(SessionValidationScheduler)

Method Summary
 void disableSessionValidation()
          Disables the session validation job.
 void enableSessionValidation()
          Enables the session validation job.
 boolean isEnabled()
          Returns true if this Scheduler is enabled and ready to begin validation at the appropriate time, false otherwise.
 

Method Detail

isEnabled

boolean isEnabled()
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.

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.



Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.