public final class FutureWork<T> extends FutureTask<T> implements ThreadReuseExecutor.PrioritizedRunnable, javax.resource.spi.work.Work
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() |
void |
release() |
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()
getPriority in interface ThreadReuseExecutor.PrioritizedRunnablepublic long getCreationTime()
getCreationTime in interface ThreadReuseExecutor.PrioritizedRunnablepublic DQPWorkContext getDqpWorkContext()
getDqpWorkContext in interface ThreadReuseExecutor.PrioritizedRunnablepublic void release()
release in interface javax.resource.spi.work.Workprotected void done()
done in class FutureTask<T>Copyright © 2018 JBoss by Red Hat. All rights reserved.