public final class FutureWork<T> extends FutureTask<T> implements ThreadReuseExecutor.PrioritizedRunnable
NO_WAIT_PRIORITY| Constructor and Description |
|---|
FutureWork(Callable<T> processor,
int priority) |
FutureWork(Runnable processor,
T result,
int priority) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
done() |
long |
getCreationTime() |
DQPWorkContext |
getDqpWorkContext() |
int |
getPriority()
The execution priority - higher is lower
|
void |
run() |
void |
setRequestId(String requestId) |
cancel, get, get, isCancelled, isDone, runAndReset, set, setExceptionpublic void setRequestId(String requestId)
public void run()
run in interface Runnablerun in interface RunnableFuture<T>run in class FutureTask<T>public int getPriority()
ThreadReuseExecutor.PrioritizedRunnablegetPriority in interface ThreadReuseExecutor.PrioritizedRunnablepublic long getCreationTime()
getCreationTime in interface ThreadReuseExecutor.PrioritizedRunnablepublic DQPWorkContext getDqpWorkContext()
getDqpWorkContext in interface ThreadReuseExecutor.PrioritizedRunnableprotected void done()
done in class FutureTask<T>Copyright © 2020. All rights reserved.