ExecutorServiceSessionValidationScheduler

SessionValidationScheduler implementation that uses a {@link ScheduledExecutorService} to call {@link ValidatingSessionManager#validateSessions()} every <em>{@link #getInterval interval}</em> milliseconds.

Constructors

this
this()
Undocumented in source.
this
this(ValidatingSessionManager sessionManager)
Undocumented in source.

Members

Functions

disableSessionValidation
void disableSessionValidation()
Undocumented in source. Be warned that the author may not have intended to support it.
enableSessionValidation
void enableSessionValidation()

Creates a single thread {@link ScheduledExecutorService} to validate sessions at fixed intervals and enables this scheduler. The executor is created as a daemon thread to allow JVM to shut down

getInterval
long getInterval()
Undocumented in source. Be warned that the author may not have intended to support it.
getSessionManager
ValidatingSessionManager getSessionManager()
Undocumented in source. Be warned that the author may not have intended to support it.
getThreadNamePrefix
string getThreadNamePrefix()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnabled
bool isEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run()
Undocumented in source. Be warned that the author may not have intended to support it.
setInterval
void setInterval(long interval)
Undocumented in source. Be warned that the author may not have intended to support it.
setSessionManager
void setSessionManager(ValidatingSessionManager sessionManager)
Undocumented in source. Be warned that the author may not have intended to support it.
setThreadNamePrefix
void setThreadNamePrefix(string threadNamePrefix)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

sessionManager
ValidatingSessionManager sessionManager;

Private internal log instance.

Inherited Members

From SessionValidationScheduler

isEnabled
bool isEnabled()

Returns <code>true</code> if this Scheduler is enabled and ready to begin validation at the appropriate time, <code>false</code> otherwise. <p/> It does <em>not</em> indicate if the validation is actually executing at that instant - only that it is prepared to do so at the appropriate time.

enableSessionValidation
void enableSessionValidation()

Enables the session validation job.

disableSessionValidation
void disableSessionValidation()

Disables the session validation job.

Meta