|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Timer
Schedules TimerTask
s for one-time future execution in a background
thread.
Method Summary | |
---|---|
Timeout |
newTimeout(TimerTask task,
long delay,
TimeUnit unit)
Schedules the specified TimerTask for one-time execution after
the specified delay. |
Set<Timeout> |
stop()
Releases all resources acquired by this Timer and cancels all
tasks which were scheduled but not executed yet. |
Method Detail |
---|
Timeout newTimeout(TimerTask task, long delay, TimeUnit unit)
TimerTask
for one-time execution after
the specified delay.
IllegalStateException
- if this timer has been
stopped alreadySet<Timeout> stop()
Timer
and cancels all
tasks which were scheduled but not executed yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |