org.jclouds.concurrent
Class DynamicThreadPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.jclouds.concurrent.DynamicThreadPoolExecutor
- All Implemented Interfaces:
- Executor, ExecutorService
public class DynamicThreadPoolExecutor
- extends ThreadPoolExecutor
An ExecutorService
that executes each submitted task using one of
possibly several pooled threads, normally configured using
DynamicExecutors
factory methods.
- Author:
- kimchy (shay.banon)
Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, finalize, 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 |
DynamicThreadPoolExecutor
public DynamicThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory)
getActiveCount
public int getActiveCount()
- Overrides:
getActiveCount
in class ThreadPoolExecutor
beforeExecute
protected void beforeExecute(Thread t,
Runnable r)
- Overrides:
beforeExecute
in class ThreadPoolExecutor
afterExecute
protected void afterExecute(Runnable r,
Throwable t)
- Overrides:
afterExecute
in class ThreadPoolExecutor
Copyright © 2009-2011 jclouds. All Rights Reserved.