org.ehcache.spi.service
Interface ExecutionService
- All Superinterfaces:
- Service
- All Known Implementing Classes:
- OnDemandExecutionService, PooledExecutionService
public interface ExecutionService
- extends Service
Configuration of ExecutionService defines named pools of threads. Consumers
reference a specific pool of threads from which their "executor" is derived.
Shutdown of these derived executors shuts down the derived executors but does
nothing to the underlying thread pool.
Method Summary |
java.util.concurrent.ExecutorService |
getOrderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
|
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutor(java.lang.String poolAlias)
|
java.util.concurrent.ExecutorService |
getUnorderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
|
getScheduledExecutor
java.util.concurrent.ScheduledExecutorService getScheduledExecutor(java.lang.String poolAlias)
getOrderedExecutor
java.util.concurrent.ExecutorService getOrderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
getUnorderedExecutor
java.util.concurrent.ExecutorService getUnorderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)