Package org.apache.shenyu.common.timer
Interface Timer
-
- All Known Implementing Classes:
HierarchicalWheelTimer
public interface TimerTimer .
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(TimerTask timerTask)Add timer task.voidadvanceClock(long timeoutMs)Advance clock boolean.voidshutdown()Shutdown.intsize()Size int.
-
-
-
Method Detail
-
add
void add(TimerTask timerTask)
Add timer task.- Parameters:
timerTask- the timer task
-
advanceClock
void advanceClock(long timeoutMs) throws java.lang.InterruptedExceptionAdvance clock boolean.- Parameters:
timeoutMs- the timeout ms- Throws:
java.lang.InterruptedException- the interrupted exception
-
size
int size()
Size int.- Returns:
- the int
-
shutdown
void shutdown()
Shutdown.
-
-