public class PriorityThreadPoolExecutor<T> extends ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable runnable) |
UpdatablePriorityBlockingQueue<T> |
getUpdatableQueue() |
static <T> PriorityThreadPoolExecutor<T> |
newFixedSizeThreadPoolExecutor(int poolSize,
TimeTrackerFactory trackerFactory)
Creates a new PriorityThreadPoolExecutor of a fixed size and uses the
TimeTrackerFactory
As time tracking mehod. |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, 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, toString
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public static <T> PriorityThreadPoolExecutor<T> newFixedSizeThreadPoolExecutor(int poolSize, TimeTrackerFactory trackerFactory)
TimeTrackerFactory
As time tracking mehod.public void execute(Runnable runnable)
execute
in interface Executor
execute
in class ThreadPoolExecutor
public UpdatablePriorityBlockingQueue<T> getUpdatableQueue()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.