Class QuartzSessionValidationJob
- java.lang.Object
-
- org.apache.shiro.session.mgt.quartz.QuartzSessionValidationJob
-
- All Implemented Interfaces:
org.quartz.Job
public class QuartzSessionValidationJob extends Object implements org.quartz.Job
A quartz job that basically just calls theValidatingSessionManager.validateSessions()method on a configured session manager. The session manager will automatically be injected by the superclass if it is in the job data map or the scheduler map.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description QuartzSessionValidationJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.quartz.JobExecutionContext context)Called when the job is executed by quartz.
-
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionExceptionCalled when the job is executed by quartz. This method delegates to the validateSessions() method on the associated session manager.- Specified by:
executein interfaceorg.quartz.Job- Parameters:
context- the Quartz job execution context for this execution.- Throws:
org.quartz.JobExecutionException
-
-