public interface Timer
TimerTasks for one-time future execution in a background thread.
|Modifier and Type||Method and Description|
Schedules the specified
Releases all resources acquired by this
Timeout newTimeout(TimerTask task, long delay, TimeUnit unit)
TimerTaskfor one-time execution after the specified delay.
IllegalStateException- if this timer has been stopped already
RejectedExecutionException- if the pending timeouts are too many and creating new timeout can cause instability in the system.
Copyright © 2008–2023 The Netty Project. All rights reserved.