public class ExecutableTask<USERID> extends FutureTask<net.idea.restnet.i.task.ITaskResult>
Modifier and Type | Field and Description |
---|---|
protected net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> |
task |
Constructor and Description |
---|
ExecutableTask(Callable<net.idea.restnet.i.task.ITaskResult> callable,
net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> task) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
protected void |
done() |
net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> |
getTask() |
void |
run() |
protected void |
set(net.idea.restnet.i.task.ITaskResult v) |
protected void |
setException(Throwable x) |
void |
setTask(net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> task) |
String |
toString() |
get, get, isCancelled, isDone, runAndReset
protected net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> task
public net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> getTask()
public void setTask(net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> task)
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface Future<net.idea.restnet.i.task.ITaskResult>
cancel
in class FutureTask<net.idea.restnet.i.task.ITaskResult>
protected void done()
done
in class FutureTask<net.idea.restnet.i.task.ITaskResult>
protected void set(net.idea.restnet.i.task.ITaskResult v)
set
in class FutureTask<net.idea.restnet.i.task.ITaskResult>
public void run()
run
in interface Runnable
run
in interface RunnableFuture<net.idea.restnet.i.task.ITaskResult>
run
in class FutureTask<net.idea.restnet.i.task.ITaskResult>
protected void setException(Throwable x)
setException
in class FutureTask<net.idea.restnet.i.task.ITaskResult>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.