public class LayoutPriorityThreadPoolExecutor extends ThreadPoolExecutor
| Modifier and Type | Class and Description |
|---|---|
static class |
LayoutPriorityThreadPoolExecutor.ComparableFutureTask<T> |
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
LayoutPriorityThreadPoolExecutor(int corePoolSize,
int maxPoolSize,
int threadPriority) |
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
submit(Callable<T> task) |
<T> Future<T> |
submit(Callable<T> task,
int priority)
Submit a task to the thread pool; the task will be scheduled to run based on the given
priority.
|
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, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submitpublic LayoutPriorityThreadPoolExecutor(int corePoolSize,
int maxPoolSize,
int threadPriority)
corePoolSize - core thread pool sizemaxPoolSize - max thread pool sizethreadPriority - priority of threads in this poolpublic <T> Future<T> submit(Callable<T> task)
submit in interface ExecutorServicesubmit in class AbstractExecutorService