public interface ExecutionService extends Service
Shutdown of these derived executors shuts down the derived executors but does nothing to the underlying thread pool.
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.ExecutorService |
getOrderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
Get a pre-configured
ExecutorService instance that guarantees execution in submission order. |
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutor(java.lang.String poolAlias)
Get a pre-configured
ScheduledExecutorService instance. |
java.util.concurrent.ExecutorService |
getUnorderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
Get a pre-configured
ExecutorService instance. |
java.util.concurrent.ScheduledExecutorService getScheduledExecutor(java.lang.String poolAlias) throws java.lang.IllegalArgumentException
ScheduledExecutorService
instance.poolAlias
- the requested pool alias.ScheduledExecutorService
instance.java.lang.IllegalArgumentException
- if the requested pool alias does not exist.java.util.concurrent.ExecutorService getOrderedExecutor(java.lang.String poolAlias, java.util.concurrent.BlockingQueue<java.lang.Runnable> queue) throws java.lang.IllegalArgumentException
ExecutorService
instance that guarantees execution in submission order.poolAlias
- the requested pool alias.queue
- the queue in which pending tasks are to be queued.ExecutorService
instance.java.lang.IllegalArgumentException
- if the requested pool alias does not exist.java.util.concurrent.ExecutorService getUnorderedExecutor(java.lang.String poolAlias, java.util.concurrent.BlockingQueue<java.lang.Runnable> queue) throws java.lang.IllegalArgumentException
ExecutorService
instance.poolAlias
- the requested pool alias.queue
- the queue in which pending tasks are to be queued.ExecutorService
instance.java.lang.IllegalArgumentException
- if the requested pool alias does not exist.