public class MultiJobTaskQueue extends MultiTaskQueue
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier and Type | Method and Description |
|---|---|
static MultiJobTaskQueue |
getCreateJobQueue(String name,
int maxParallel)
grab the queue
|
boolean |
queue(Runnable task)
ensure we don't accidentally queue non-runpairs
|
boolean |
queue(Runnable task,
Object mutex) |
getCreateQueue, getCurrentRunning, getMaxParallel, interruptCurrent, interruptTask, setMaxParallel, toStringgetAvQueue, getAvRun, getCreateQueue, getDone, getSumQueue, getSumRun, run, shutDown, shutDown, shutDownAll, sizeactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldpublic static MultiJobTaskQueue getCreateJobQueue(String name, int maxParallel)
name - - must not be nullmaxParallel - ignored if <=0public boolean queue(Runnable task, Object mutex)
task - mutex - all tasks wit the same mutex will be run in sequencepublic boolean queue(Runnable task)
queue in class OrderedTaskQueuetask - the thing to send offOrderedTaskQueue.queue(java.lang.Runnable)Copyright © 2018. All rights reserved.