public class SingleProcessor extends Processor
Processor.ProcessorEventListener
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
DEFAULT_MAX_PROCESSING, DEFAULT_MAX_WAITING, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
SingleProcessor(boolean enableQueue) |
SingleProcessor(boolean enableQueue,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
isQueueEnabled() |
boolean |
requestProcess(java.lang.Runnable task)
Deprecated.
use
Processor.submit(Runnable) instead. |
boolean |
requestProcess(java.lang.Runnable task,
boolean onAWTEventThread)
Deprecated.
use
Processor.submit(Runnable, boolean) instead |
addListener, addTask, addTask, addTask, execute, fireDoneEvent, getDefaultThreadName, getFreeSlotNumber, getPriority, getThreadName, getWaitingTasksCount, getWaitingTasksCount, getWaitingTasksCount, getWaitingTasksCount, hasWaitingTasks, hasWaitingTasks, hasWaitingTasks, hasWaitingTasks, isFull, isProcessing, limitWaitingTask, limitWaitingTask, limitWaitingTask, remove, removeAllWaitingTasks, removeFirstWaitingTask, removeFirstWaitingTask, removeFirstWaitingTask, removeListener, removeTask, removeWaitingTasks, removeWaitingTasks, removeWaitingTasks, setDefaultThreadName, setPriority, setThreadName, shutdownAndWait, submit, submit, submit, submit, submit, submit, submit, submit, submit, waitAll
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, toString
public SingleProcessor(boolean enableQueue, java.lang.String name)
public SingleProcessor(boolean enableQueue)
@Deprecated public boolean requestProcess(java.lang.Runnable task)
Processor.submit(Runnable)
instead.@Deprecated public boolean requestProcess(java.lang.Runnable task, boolean onAWTEventThread)
Processor.submit(Runnable, boolean)
insteadpublic boolean isQueueEnabled()