private class ProcedureExecutor.WorkerThread extends StoppableThread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private Procedure<TEnvironment> |
activeProcedure |
private AtomicLong |
executionStartTime |
private boolean |
onlyPollUrgent |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
|
WorkerThread(ThreadGroup group) |
protected |
WorkerThread(ThreadGroup group,
String prefix) |
protected |
WorkerThread(ThreadGroup group,
String prefix,
boolean onlyPollUrgent) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrentRunTime() |
protected boolean |
keepAlive(long lastUpdate) |
void |
run() |
void |
sendStopSignal() |
String |
toString() |
awaitTerminationactiveCount, 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, yieldprivate final AtomicLong executionStartTime
private volatile Procedure<TEnvironment> activeProcedure
private boolean onlyPollUrgent
public WorkerThread(ThreadGroup group)
protected WorkerThread(ThreadGroup group, String prefix)
protected WorkerThread(ThreadGroup group, String prefix, boolean onlyPollUrgent)
public void sendStopSignal()
sendStopSignal in class StoppableThreadpublic long getCurrentRunTime()
protected boolean keepAlive(long lastUpdate)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.