|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ATimer
Timer interface. It closely mimics Timer
class. The
ACloseable.close()
works like Timer.cancel()
.
Method Summary | |
---|---|
Promise<Integer> |
purge()
Remove all tasks from the timer |
Promise<ACallable<Boolean>> |
schedule(Date time,
ATimerTask task)
Schedule task at specified time |
Promise<ACallable<Boolean>> |
schedule(Date firstTime,
long period,
ATimerTask task)
Schedule task after specfied time with specified period |
Promise<ACallable<Boolean>> |
schedule(long delay,
ATimerTask task)
Schedule task after specified delay |
Promise<ACallable<Boolean>> |
schedule(long delay,
long period,
ATimerTask task)
Schedule task after specfied delay with specified period |
Promise<ACallable<Boolean>> |
scheduleAtFixedRate(Date firstTime,
long period,
ATimerTask task)
Schedule task after specfied time with fixed rage |
Promise<ACallable<Boolean>> |
scheduleAtFixedRate(long delay,
long period,
ATimerTask task)
Schedule task after specfied delay with fixed rate |
Methods inherited from interface net.sf.asyncobjects.ACloseable |
---|
close |
Methods inherited from interface net.sf.asyncobjects.AsyncObject |
---|
dereference, isImmediate |
Method Detail |
---|
Promise<Integer> purge()
Promise<ACallable<Boolean>> schedule(long delay, ATimerTask task)
delay
- a delaytask
- a taks to schedule.
Timer.schedule(java.util.TimerTask, long)
,
TimerTask.cancel()
Promise<ACallable<Boolean>> schedule(Date time, ATimerTask task)
time
- a time to schedule attask
- a taks to schedule.
Timer.schedule(java.util.TimerTask, Date)
,
TimerTask.cancel()
Promise<ACallable<Boolean>> schedule(long delay, long period, ATimerTask task)
delay
- a delayperiod
- a periodtask
- a taks to schedule.
Timer.schedule(java.util.TimerTask, long, long)
,
TimerTask.cancel()
Promise<ACallable<Boolean>> schedule(Date firstTime, long period, ATimerTask task)
firstTime
- a first time the task is executedperiod
- a periodtask
- a taks to schedule.
Timer.schedule(java.util.TimerTask, long, long)
,
TimerTask.cancel()
Promise<ACallable<Boolean>> scheduleAtFixedRate(long delay, long period, ATimerTask task)
delay
- a delayperiod
- a periodtask
- a taks to schedule.
Timer.schedule(java.util.TimerTask, long, long)
,
TimerTask.cancel()
Promise<ACallable<Boolean>> scheduleAtFixedRate(Date firstTime, long period, ATimerTask task)
firstTime
- a first time the task is executedperiod
- a periodtask
- a taks to schedule.
Timer.schedule(java.util.TimerTask, long, long)
,
TimerTask.cancel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |