Class ExecutorService

java.lang.Object
org.apache.hadoop.hbase.executor.ExecutorService

@Private public class ExecutorService extends Object
This is a generic executor service. This component abstracts a threadpool, a queue to which EventTypes can be submitted, and a Runnable that handles the object that is added to the queue.

In order to create a new service, create an instance of this class and then do: instance.startExecutorService(executorConfig);. ExecutorService.ExecutorConfig wraps the configuration needed by this service. When done call shutdown().

In order to use the service created above, call submit(EventHandler).