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