Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
boolean |
addPostTask(Runnable task)
Add a task to run after the Worker has finished or quit.
|
static Bureaucrat |
create(Worker worker,
Project project)
Creates but does not start the Bureaucrat thread.
|
static Bureaucrat |
create(Worker worker,
Project[] project)
Creates but does not start the Bureaucrat thread.
|
static Bureaucrat |
createAndStart(Worker worker,
Project project)
Creates and start the Bureaucrat thread.
|
static Bureaucrat |
createAndStart(Worker worker,
Project[] project)
Creates and start the Bureaucrat thread.
|
String |
getTaskName()
Returns the task the worker is currently executing, which may change over time.
|
Worker |
getWorker() |
void |
goHaveBreakfast()
Starts the Bureaucrat thread: sets the worker to work and monitors it until it finishes.
|
boolean |
isActive() |
void |
quit()
Waits until worker finishes before returning.
|
void |
run() |
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, toString, yield
public static Bureaucrat create(Worker worker, Project project)
public static Bureaucrat create(Worker worker, Project[] project)
public static Bureaucrat createAndStart(Worker worker, Project project)
public static Bureaucrat createAndStart(Worker worker, Project[] project)
public void goHaveBreakfast()
public String getTaskName()
public void quit()
public boolean isActive()
public Worker getWorker()
public boolean addPostTask(Runnable task)
Copyright © 2015–2021 Fiji. All rights reserved.