public interface ExecutorService<V extends java.io.Serializable>
SerializableCallable tasks. An ExecutorServiceManager uses the java
service loader to load ExecutorService(s) from oracle.jbo.common.async.ExecutorService
resource(s). The application developer may then specify the application
executor service by specifying the service name in the application ADF config.
If no application executor service is specified the framework will use
the DirectExecutorService to execute
SerializableCallables. ADF also provides a ScheduledThreadPoolExecutorService
that may be used to execute SerializableCallables in a thread pool.
See Async for a usage of the application
ExecutorService.| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
java.lang.String |
getName() |
boolean |
isShutdown() |
boolean |
isTerminated() |
SerializableFuture<V> |
schedule(SerializableCallable<V> callable) |
void |
shutdown() |
java.lang.String getName()
SerializableFuture<V> schedule(SerializableCallable<V> callable)
boolean isShutdown()
boolean isTerminated()
void shutdown()
boolean awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedException