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)
Deprecated.
Please use
FastThreadPoolExecutor(int, int, long, TimeUnit, String, Class)
instead. |
FastThreadPoolExecutor(int maximumPoolSize,
int maximumQueueSize,
long keepAliveTime,
TimeUnit unit,
String threadPrefix,
Class<?> loggerIdentity)
Constructs a FastThreadPoolExecutor instance.
|
FastThreadPoolExecutor(int maximumPoolSize,
int maximumQueueSize,
String threadPrefix)
Deprecated.
Please use
FastThreadPoolExecutor(int, int, String, Class)
instead. |
FastThreadPoolExecutor(int maximumPoolSize,
int maximumQueueSize,
String threadPrefix,
Class<?> loggerIdentity)
Constructs a FastThreadPoolExecutor instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.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, terminatedinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic 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.@Deprecated public FastThreadPoolExecutor(int maximumPoolSize, int maximumQueueSize, String threadPrefix)
FastThreadPoolExecutor(int, int, String, Class)
instead.@Deprecated public FastThreadPoolExecutor(int maximumPoolSize, int maximumQueueSize, long keepAliveTime, TimeUnit unit, String threadPrefix)
FastThreadPoolExecutor(int, int, long, TimeUnit, String, Class)
instead.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 com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
public final String toString()
toString in class ThreadPoolExecutorCopyright © 2019 OpenDaylight. All rights reserved.