public class MultiJobTaskQueue extends MultiTaskQueue
Thread.State, Thread.UncaughtExceptionHandler
MAX_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, toString
getAvQueue, getAvRun, getCreateQueue, getDone, getSumQueue, getSumRun, run, shutDown, shutDown, shutDownAll, size
activeCount, 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, yield
public 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 OrderedTaskQueue
task
- the thing to send offOrderedTaskQueue.queue(java.lang.Runnable)
Copyright © 2018. All rights reserved.