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()
Worker
Thread.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 Worker
Thread.State
of the thread in which this Worker
is
running.public StackTraceElement[] getStackTrace()
Worker
Worker
is
running.getStackTrace
in interface Worker
Worker
is
running.Copyright © 2015. All rights reserved.