public abstract class Task<T>
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOSTART |
static int |
IGNORENULL |
static int |
RUNONCE |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
chainTask(ChainedTask<T,?> task) |
T |
getResult() |
T |
getResult(long milliTimeout) |
T |
getResultNow() |
boolean |
isCancelled() |
void |
run() |
T |
startTask() |
public static final int AUTOSTART
public static final int RUNONCE
public static final int IGNORENULL
public final void run()
run in interface java.lang.Runnablepublic final T startTask() throws TaskException
TaskExceptionpublic final void chainTask(ChainedTask<T,?> task) throws TaskException
TaskExceptionpublic final T getResult() throws TaskException
TaskExceptionpublic final T getResult(long milliTimeout) throws TaskException
TaskExceptionpublic final T getResultNow() throws TaskException
TaskExceptionpublic boolean isCancelled()
public void cancel()