public class FastThreadPoolExecutor extends ThreadPoolExecutor
See SpecialExecutors.newBoundedFastThreadPool(int, int, java.lang.String, java.lang.Class<?>)
for more details.
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
Constructor and Description |
---|
FastThreadPoolExecutor(int maximumPoolSize,
int maximumQueueSize,
long keepAliveTime,
TimeUnit unit,
String threadPrefix,
Class<?> loggerIdentity)
Constructs a FastThreadPoolExecutor instance.
|
FastThreadPoolExecutor(int maximumPoolSize,
int maximumQueueSize,
String threadPrefix,
Class<?> loggerIdentity)
Constructs a FastThreadPoolExecutor instance.
|
Modifier and Type | Method and Description |
---|---|
protected MoreObjects.ToStringHelper |
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) |
long |
getLargestQueueSize() |
String |
toString() |
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
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public FastThreadPoolExecutor(int maximumPoolSize, int maximumQueueSize, String threadPrefix, Class<?> loggerIdentity)
maximumPoolSize
- the maximum number of threads to allow in the pool. Threads will terminate after
being idle for 15 seconds.maximumQueueSize
- the capacity of the queue.threadPrefix
- the name prefix for threads created by this executor.loggerIdentity
- the class to use as logger name for logging uncaught exceptions from the threads.public FastThreadPoolExecutor(int maximumPoolSize, int maximumQueueSize, long keepAliveTime, TimeUnit unit, String threadPrefix, Class<?> loggerIdentity)
maximumPoolSize
- the maximum number of threads to allow in the pool.maximumQueueSize
- the capacity of the queue.keepAliveTime
- the maximum time that idle threads will wait for new tasks before terminating.unit
- the time unit for the keepAliveTime argumentthreadPrefix
- the name prefix for threads created by this executor.loggerIdentity
- the class to use as logger name for logging uncaught exceptions from the threads.public long getLargestQueueSize()
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
public final String toString()
toString
in class ThreadPoolExecutor
Copyright © 2020 OpenDaylight. All rights reserved.