|
|||||||||
| 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)
ExecutionServiceScheduledExecutorService instance.
getScheduledExecutor in interface ExecutionServicepoolAlias - the requested pool alias.
ScheduledExecutorService instance.
public java.util.concurrent.ExecutorService getOrderedExecutor(java.lang.String poolAlias,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
ExecutionServiceExecutorService instance that guarantees execution in submission order.
getOrderedExecutor in interface ExecutionServicepoolAlias - 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)
ExecutionServiceExecutorService instance.
getUnorderedExecutor in interface ExecutionServicepoolAlias - the requested pool alias.queue - the queue in which pending tasks are to be queued.
ExecutorService instance.public void start(ServiceProvider serviceProvider)
ServiceServiceProvider.
The goal of the service provider is to allow a service to use other services.
start in interface ServiceserviceProvider - 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 | ||||||||