org.ehcache.internal.executor
Class DefaultThreadPoolsService

java.lang.Object
  extended by org.ehcache.internal.executor.DefaultThreadPoolsService
All Implemented Interfaces:
Service, ThreadPoolsService

public class DefaultThreadPoolsService
extends java.lang.Object
implements ThreadPoolsService


Constructor Summary
DefaultThreadPoolsService()
           
 
Method Summary
 java.util.concurrent.ExecutorService getEventsOrderedDeliveryExecutor()
           
 java.util.concurrent.ExecutorService getEventsUnorderedDeliveryExecutor()
           
 java.util.concurrent.ScheduledExecutorService getStatisticsExecutor()
           
 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
 

Constructor Detail

DefaultThreadPoolsService

public DefaultThreadPoolsService()
Method Detail

getStatisticsExecutor

public java.util.concurrent.ScheduledExecutorService getStatisticsExecutor()
Specified by:
getStatisticsExecutor in interface ThreadPoolsService

getEventsOrderedDeliveryExecutor

public java.util.concurrent.ExecutorService getEventsOrderedDeliveryExecutor()
Specified by:
getEventsOrderedDeliveryExecutor in interface ThreadPoolsService

getEventsUnorderedDeliveryExecutor

public java.util.concurrent.ExecutorService getEventsUnorderedDeliveryExecutor()
Specified by:
getEventsUnorderedDeliveryExecutor in interface ThreadPoolsService

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