public interface Timer
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 © 2022 The Apache Software Foundation. All rights reserved.