net.sf.seide.thread
Class DispatcherThreadPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
net.sf.seide.thread.DispatcherThreadPoolExecutor
- All Implemented Interfaces:
- Executor, ExecutorService, JMXConfigurableThreadPoolExecutor, JMXEnabledThreadPoolExecutor
public class DispatcherThreadPoolExecutor
- extends ThreadPoolExecutor
- implements JMXEnabledThreadPoolExecutor, JMXConfigurableThreadPoolExecutor
Dispatcher friendly ThreadPoolExecutor subclass to provide JMX access to internal values and allows
to configure the
- Author:
- german.kondolf
- See Also:
ThreadPoolExecutor}
|
Constructor Summary |
DispatcherThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
|
DispatcherThreadPoolExecutor(String namePrefix)
|
DispatcherThreadPoolExecutor(String namePrefix,
int corePoolSize,
int maxPoolSize)
|
DispatcherThreadPoolExecutor(String namePrefix,
int corePoolSize,
int maximumPoolSize,
int maxQueueSize,
RejectedExecutionHandler handler)
|
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated |
DispatcherThreadPoolExecutor
public DispatcherThreadPoolExecutor(String namePrefix)
DispatcherThreadPoolExecutor
public DispatcherThreadPoolExecutor(String namePrefix,
int corePoolSize,
int maxPoolSize)
DispatcherThreadPoolExecutor
public DispatcherThreadPoolExecutor(String namePrefix,
int corePoolSize,
int maximumPoolSize,
int maxQueueSize,
RejectedExecutionHandler handler)
DispatcherThreadPoolExecutor
public DispatcherThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
getCompletedTasks
public long getCompletedTasks()
- Description copied from interface:
JMXEnabledThreadPoolExecutor
- Get the number of completed tasks
- Specified by:
getCompletedTasks in interface JMXEnabledThreadPoolExecutor
getPendingTasks
public long getPendingTasks()
- Description copied from interface:
JMXEnabledThreadPoolExecutor
- Get the number of tasks waiting to be executed
- Specified by:
getPendingTasks in interface JMXEnabledThreadPoolExecutor
Copyright © 2011. All Rights Reserved.