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, setException
public void setRequestId(String requestId)
public void run()
run
in interface Runnable
run
in interface RunnableFuture<T>
run
in class FutureTask<T>
public int getPriority()
ThreadReuseExecutor.PrioritizedRunnable
getPriority
in interface ThreadReuseExecutor.PrioritizedRunnable
public long getCreationTime()
getCreationTime
in interface ThreadReuseExecutor.PrioritizedRunnable
public DQPWorkContext getDqpWorkContext()
getDqpWorkContext
in interface ThreadReuseExecutor.PrioritizedRunnable
protected void done()
done
in class FutureTask<T>
Copyright © 2020. All rights reserved.