Class RunnableTimerTask

  • All Implemented Interfaces:
    Runnable

    public class RunnableTimerTask
    extends RecoverableTimerTask
    RunnableTimerTask is a TimerTask which will use Recoverable interface whenever Exception or Error may stop the running Timer or make the Timer to an unknown state.
    • Constructor Detail

      • RunnableTimerTask

        public RunnableTimerTask​(Runnable target)
        Constructor of RunnableTimerTask
        Parameters:
        target - The runnable interface to be run
    • Method Detail

      • setRunnable

        public void setRunnable​(Runnable target)
        Assigns the runnable interface to this RunnableTimerTask
        Parameters:
        target - The runnable to assign
      • getRunnable

        public Runnable getRunnable()
        Returns the runnable interface from this RunnableTimerTask
        Returns:
        Runnable interface assoicated with this RunnableTimerTask
      • run

        public void run()
        The run method with error handling and recovery.
        Specified by:
        run in interface Runnable
        Specified by:
        run in class TimerTask