Package org.apache.shenyu.common.timer
Class TimerTaskList.TimerTaskEntry
- java.lang.Object
-
- org.apache.shenyu.common.timer.TimerTaskList.TimerTaskEntry
-
- All Implemented Interfaces:
java.lang.Comparable<TimerTaskList.TimerTaskEntry>,TaskEntity
- Enclosing class:
- TimerTaskList
public static class TimerTaskList.TimerTaskEntry extends java.lang.Object implements TaskEntity, java.lang.Comparable<TimerTaskList.TimerTaskEntry>
The type Timer task entry.
-
-
Constructor Summary
Constructors Constructor Description TimerTaskEntry(Timer timer, TimerTask timerTask, java.lang.Long expirationMs)Instantiates a new Timer task entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel boolean.booleancancelled()Has the current task been cancelled.intcompareTo(TimerTaskList.TimerTaskEntry timerTaskEntry)java.lang.LonggetExpirationMs()Gets expiration ms.TimergetTimer()Gets timer.TimerTaskgetTimerTask()Gets timer task.
-
-
-
Method Detail
-
cancelled
public boolean cancelled()
Has the current task been cancelled.- Specified by:
cancelledin interfaceTaskEntity- Returns:
- the boolean
-
cancel
public void cancel()
Cancel boolean.- Specified by:
cancelin interfaceTaskEntity
-
getExpirationMs
public java.lang.Long getExpirationMs()
Gets expiration ms.- Returns:
- the expiration ms
-
getTimer
public Timer getTimer()
Gets timer.- Specified by:
getTimerin interfaceTaskEntity- Returns:
- the timer
-
getTimerTask
public TimerTask getTimerTask()
Gets timer task.- Specified by:
getTimerTaskin interfaceTaskEntity- Returns:
- the timer task
-
compareTo
public int compareTo(TimerTaskList.TimerTaskEntry timerTaskEntry)
- Specified by:
compareToin interfacejava.lang.Comparable<TimerTaskList.TimerTaskEntry>
-
-