Package org.jboss.netty.util
Interface Timer
- All Known Implementing Classes:
HashedWheelTimer
public interface Timer
Schedules
TimerTask
s for one-time future execution in a background
thread.-
Method Summary
-
Method Details
-
newTimeout
Schedules the specifiedTimerTask
for one-time execution after the specified delay.- Returns:
- a handle which is associated with the specified task
- Throws:
IllegalStateException
- if this timer has been stopped already
-
stop
Releases all resources acquired by thisTimer
and cancels all tasks which were scheduled but not executed yet.- Returns:
- the handles associated with the tasks which were canceled by this method
-