Class TimerTaskList.TimerTaskEntry

    • Constructor Detail

      • TimerTaskEntry

        public TimerTaskEntry​(Timer timer,
                              TimerTask timerTask,
                              java.lang.Long expirationMs)
        Instantiates a new Timer task entry.
        Parameters:
        timer - the timer
        timerTask - the timer task
        expirationMs - the expiration ms
    • Method Detail

      • cancelled

        public boolean cancelled()
        Has the current task been cancelled.
        Specified by:
        cancelled in interface TaskEntity
        Returns:
        the boolean
      • cancel

        public void cancel()
        Cancel boolean.
        Specified by:
        cancel in interface TaskEntity
      • getExpirationMs

        public java.lang.Long getExpirationMs()
        Gets expiration ms.
        Returns:
        the expiration ms
      • getTimer

        public Timer getTimer()
        Gets timer.
        Specified by:
        getTimer in interface TaskEntity
        Returns:
        the timer