|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.impl.internal.executor.PooledExecutionService
public class PooledExecutionService
Method Summary | |
---|---|
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. |
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 |
Method Detail |
---|
public java.util.concurrent.ScheduledExecutorService getScheduledExecutor(java.lang.String poolAlias)
ExecutionService
ScheduledExecutorService
instance.
getScheduledExecutor
in interface ExecutionService
poolAlias
- the requested pool alias.
ScheduledExecutorService
instance.public java.util.concurrent.ExecutorService getOrderedExecutor(java.lang.String poolAlias, java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
ExecutionService
ExecutorService
instance that guarantees execution in submission order.
getOrderedExecutor
in interface ExecutionService
poolAlias
- the requested pool alias.queue
- the queue in which pending tasks are to be queued.
ExecutorService
instance.public java.util.concurrent.ExecutorService getUnorderedExecutor(java.lang.String poolAlias, java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
ExecutionService
ExecutorService
instance.
getUnorderedExecutor
in interface ExecutionService
poolAlias
- the requested pool alias.queue
- the queue in which pending tasks are to be queued.
ExecutorService
instance.public void start(ServiceProvider serviceProvider)
Service
ServiceProvider
.
The goal of the service provider is to allow a service to use other services.
start
in interface Service
serviceProvider
- the service provider.public void stop()
Service
stop
in interface Service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |