org.ehcache.internal.executor
Class OnDemandExecutionService
java.lang.Object
org.ehcache.internal.executor.OnDemandExecutionService
- All Implemented Interfaces:
- ExecutionService, Service
public class OnDemandExecutionService
- extends java.lang.Object
- implements ExecutionService
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)
|
void |
start(ServiceProvider serviceProvider)
Start this service using the provided configuration and ServiceProvider . |
void |
stop()
Stops this service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnDemandExecutionService
public OnDemandExecutionService()
getScheduledExecutor
public java.util.concurrent.ScheduledExecutorService getScheduledExecutor(java.lang.String poolAlias)
- Specified by:
getScheduledExecutor
in interface ExecutionService
getOrderedExecutor
public java.util.concurrent.ExecutorService getOrderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
- Specified by:
getOrderedExecutor
in interface ExecutionService
getUnorderedExecutor
public java.util.concurrent.ExecutorService getUnorderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
- Specified by:
getUnorderedExecutor
in interface ExecutionService
start
public void start(ServiceProvider serviceProvider)
- Description copied from interface:
Service
- Start this service using the provided configuration and
ServiceProvider
.
The goal of the service provider is to allow a service to use other services.
- Specified by:
start
in interface Service
- Parameters:
serviceProvider
- the service provider.
stop
public void stop()
- Description copied from interface:
Service
- Stops this service.
- Specified by:
stop
in interface Service