Class TimerTask

  • Direct Known Subclasses:
    AbstractRetryTask

    public abstract class TimerTask
    extends java.lang.Object
    TimerTask.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimerTask​(long delayMs)
      Instantiates a new Timer task.
      TimerTask​(long delay, java.util.concurrent.TimeUnit unit)
      Instantiates a new Timer task.
    • Constructor Detail

      • TimerTask

        public TimerTask​(long delayMs)
        Instantiates a new Timer task.
        Parameters:
        delayMs - the delay ms
      • TimerTask

        public TimerTask​(long delay,
                         java.util.concurrent.TimeUnit unit)
        Instantiates a new Timer task.
        Parameters:
        delay - the delay
        unit - the unit
    • Method Detail

      • cancel

        public void cancel()
        Cancel task.
      • run

        public abstract void run​(TaskEntity taskEntity)
        Run.
        Parameters:
        taskEntity - the task entity