|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.parser.util.AsyncScheduler
The AsyncScheduler
is a part of a basic API to allow
scheduling asynchronous tasks that support cancelling while the
task is running. It is recommended that JSR 166 be used when
it becomes available as part of the JDK later.
This scheduler schedules background threads to complete queued tasks. If there are no tasks queued, the background threads will exit.
Constructor Summary | |
AsyncScheduler(java.lang.String runnerPrefix,
int idleTimeout)
Construct a new AsyncScheduler . |
Method Summary | |
void |
cancelTask(AsyncTask task)
Cancel a pending task. |
void |
scheduleTask(AsyncTask task)
Schedule a new task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsyncScheduler(java.lang.String runnerPrefix, int idleTimeout)
AsyncScheduler
.
runnerPrefix
- the prefix name for the runner threadsidleTimeout
- the idle timeout that an idle thread waits before
exitingMethod Detail |
public void scheduleTask(AsyncTask task)
task
- the task to schedulepublic void cancelTask(AsyncTask task)
task
- the task to cancel
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.