|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.kernel.schedule.TimedTaskHandler
class TimedTaskHandler
Package-private utility class that handles timers for tasks that are scheduled to run in the future.
| Field Summary | |
|---|---|
(package private) static int |
FUTURE_THRESHOLD
The milliseconds in the future that a task must be to be accepted by the handler. |
| Constructor Summary | |
|---|---|
TimedTaskHandler(TimedTaskListener listener)
Creates an instance of TimedTaskHandler. |
|
| Method Summary | |
|---|---|
(package private) boolean |
runDelayed(ScheduledTask task)
Tries to pass off a task to be run at some point in the future. |
(package private) void |
shutdown()
Shuts down this handler, cancelling the associated timer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int FUTURE_THRESHOLD
| Constructor Detail |
|---|
TimedTaskHandler(TimedTaskListener listener)
TimedTaskHandler. This has the
effect of creating a new Timer which involves creating
at least one new thread.
listener - the TimedTaskListener that will consume
the task when its time comes, causing it to be executed| Method Detail |
|---|
boolean runDelayed(ScheduledTask task)
false.
task - the ScheduledTask to run in the future
true if the task is accepted to run delayed,
false otherwisevoid shutdown()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||