|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.parser.util.AsyncScheduler
public class 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 . |
|
AsyncScheduler(java.lang.String runnerPrefix,
int idleTimeout,
int maxThreads)
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
exitingpublic AsyncScheduler(java.lang.String runnerPrefix, int idleTimeout, int maxThreads)
AsyncScheduler
.
runnerPrefix
- the prefix name for the runner threadsidleTimeout
- the idle timeout that an idle thread waits before
exitingmaxThreads
- the number of concurrent max possible threadsMethod Detail |
---|
public void scheduleTask(AsyncTask task)
task
- the task to schedulepublic void cancelTask(AsyncTask task)
task
- the task to cancel
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |