Class ScalingThreadPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
com.orientechnologies.common.thread.OThreadPoolExecutorWithLogging
com.orientechnologies.common.thread.ScalingThreadPoolExecutor
- All Implemented Interfaces:
Executor,ExecutorService
A
ThreadPoolExecutor that scales the pool beyond the core pool size, even if an unbounded
work queue is used.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy -
Constructor Summary
ConstructorsConstructorDescriptionScalingThreadPoolExecutor(int corePoolSize, int maxPoolSize, long timeout, TimeUnit timeoutUnit, int targetQueueCapacity, int maxQueueCapacity, com.orientechnologies.common.thread.NamedThreadFactory namedThreadFactory) ScalingThreadPoolExecutor(int corePoolSize, int maxPoolSize, long timeout, TimeUnit timeoutUnit, int queueCapacity, com.orientechnologies.common.thread.NamedThreadFactory namedThreadFactory) -
Method Summary
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
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, toStringMethods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
ScalingThreadPoolExecutor
public ScalingThreadPoolExecutor(int corePoolSize, int maxPoolSize, long timeout, TimeUnit timeoutUnit, int queueCapacity, com.orientechnologies.common.thread.NamedThreadFactory namedThreadFactory) -
ScalingThreadPoolExecutor
public ScalingThreadPoolExecutor(int corePoolSize, int maxPoolSize, long timeout, TimeUnit timeoutUnit, int targetQueueCapacity, int maxQueueCapacity, com.orientechnologies.common.thread.NamedThreadFactory namedThreadFactory)
-
-
Method Details
-
afterExecute
- Overrides:
afterExecutein classOThreadPoolExecutorWithLogging
-