public interface Timer
| Modifier and Type | Method and Description |
|---|---|
void |
add(TimerTask timerTask)
Add timer task.
|
void |
advanceClock(long timeoutMs)
Advance clock boolean.
|
void |
shutdown()
Shutdown.
|
int |
size()
Size int.
|
void add(TimerTask timerTask)
timerTask - the timer taskvoid advanceClock(long timeoutMs)
throws java.lang.InterruptedException
timeoutMs - the timeout msjava.lang.InterruptedException - the interrupted exceptionint size()
void shutdown()
Copyright © 2024 The Apache Software Foundation. All rights reserved.