Class ExecutorServiceSessionValidationScheduler

    • Constructor Detail

      • ExecutorServiceSessionValidationScheduler

        public ExecutorServiceSessionValidationScheduler()
      • ExecutorServiceSessionValidationScheduler

        public ExecutorServiceSessionValidationScheduler​(ValidatingSessionManager sessionManager)
    • Method Detail

      • getInterval

        public long getInterval()
      • setInterval

        public void setInterval​(long interval)
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: SessionValidationScheduler
        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.

        Specified by:
        isEnabled in interface SessionValidationScheduler
        Returns:
        true if this Scheduler is enabled and ready to begin validation at the appropriate time, false otherwise.
      • setThreadNamePrefix

        public void setThreadNamePrefix​( threadNamePrefix)
      • getThreadNamePrefix

        public  getThreadNamePrefix()
      • enableSessionValidation

        public void enableSessionValidation()
        Creates a single thread to validate sessions at fixed intervals and enables this scheduler. The executor is created as a daemon thread to allow JVM to shut down
        Specified by:
        enableSessionValidation in interface SessionValidationScheduler
      • run

        public void run()
        Specified by:
         in interface