public final class PriorityScheduledExecutor extends ScheduledThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
PriorityScheduledExecutor(int executorSize,
String threadPrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeExecute(Thread thread,
Runnable lowPriorityTask) |
<T> Future<T> |
executeNow(Callable<T> priorityTask) |
void |
executeNow(Runnable priorityTask) |
<T> Future<T> |
executeNow(RunnableFuture<T> priorityFuture) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, submit, submit, submitafterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic PriorityScheduledExecutor(int executorSize,
String threadPrefix)
public void executeNow(Runnable priorityTask)
public <T> Future<T> executeNow(RunnableFuture<T> priorityFuture)
protected void beforeExecute(Thread thread, Runnable lowPriorityTask)
beforeExecute in class ThreadPoolExecutorpublic void shutdown()
shutdown in interface ExecutorServiceshutdown in class ScheduledThreadPoolExecutorpublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServiceshutdownNow in class ScheduledThreadPoolExecutorCopyright © 2019 JBoss by Red Hat. All rights reserved.