| Modifier and Type | Field and Description |
|---|---|
protected boolean |
interrupted |
private static org.slf4j.Logger |
LOGGER |
protected Overseer |
overseer |
protected Task |
task |
protected Thread |
thread |
| Constructor and Description |
|---|
WorkerImpl(Task task,
Overseer overseer) |
| Modifier and Type | Method and Description |
|---|---|
StackTraceElement[] |
getStackTrace()
Returns the stack trace of the thread in which this
Worker is
running. |
Thread.State |
getState()
Returns the
Thread.State of the thread in which this Worker is
running. |
Task |
getTask()
|
void |
interrupt() |
void |
run() |
private static final org.slf4j.Logger LOGGER
protected Task task
protected Overseer overseer
protected Thread thread
protected boolean interrupted
public Thread.State getState()
WorkerThread.State of the thread in which this Worker is
running. Returns Thread.State.NEW if this worker hasn't been started
until now.getState in interface WorkerThread.State of the thread in which this Worker is
running.public StackTraceElement[] getStackTrace()
WorkerWorker is
running.getStackTrace in interface WorkerWorker is
running.Copyright © 2015–2020. All rights reserved.