Class MaxTimeActiveTimer

    • Method Detail

      • isInterruptedByMaxTimeTimer

        public static boolean isInterruptedByMaxTimeTimer​(Thread thread)
        Test specified thread is interrupted.
        Parameters:
        thread - thread object.
        Returns:
        true if the thread is interrupted.
      • start

        public void start()
        Schedule timer task.
        Specified by:
        start in interface MaxTimeTimer
      • stop

        public void stop()
        stop timer and remove scheduled task.
        Specified by:
        stop in interface MaxTimeTimer