Package org.apache.shenyu.common.timer
Class AbstractRoundTask
- java.lang.Object
-
- org.apache.shenyu.common.timer.TimerTask
-
- org.apache.shenyu.common.timer.AbstractRetryTask
-
- org.apache.shenyu.common.timer.AbstractRoundTask
-
public abstract class AbstractRoundTask extends AbstractRetryTask
AbstractRoundTask . A timer that runs periodically, repeatedly.
-
-
Constructor Summary
Constructors Constructor Description AbstractRoundTask(java.lang.String key, long delayMs)Instantiates a new Timer task.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddoRetry(java.lang.String key, TimerTask timerTask)Do retry.abstract voiddoRun(java.lang.String key, TimerTask timerTask)Do timer.voidrun(TaskEntity taskEntity)Run.-
Methods inherited from class org.apache.shenyu.common.timer.AbstractRetryTask
again
-
-
-
-
Method Detail
-
run
public void run(TaskEntity taskEntity)
Description copied from class:TimerTaskRun.- Overrides:
runin classAbstractRetryTask- Parameters:
taskEntity- the task entity
-
doRetry
protected void doRetry(java.lang.String key, TimerTask timerTask)Do retry.- Specified by:
doRetryin classAbstractRetryTask- Parameters:
key- the keytimerTask- the timer task
-
doRun
public abstract void doRun(java.lang.String key, TimerTask timerTask)Do timer.- Parameters:
key- the keytimerTask- the timer task
-
-