|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.cron.api.asynchronous.AsyncResult<T>
public class AsyncResult<T>
This is a convenience implementation of #Future which can be used as the return
value of an @#Asynchronous method. This is useful because it prompts Seam Cron
to re-wrap the asynchronous method execution in a legitimate #FutureTask and return
that immediately to the calling method.
| Constructor Summary | |
|---|---|
AsyncResult(T result)
Wraps the given result in a # Future. |
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean bln)
This "dummy" Future represents a calculation which has already been performed, and thus cannot be canceled. |
T |
get()
|
T |
get(long l,
TimeUnit tu)
|
boolean |
isCancelled()
This "dummy" Future represents a calculation which has already been performed, and thus cannot be canceled. |
boolean |
isDone()
This "dummy" Future represents a calculation which has already been performed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncResult(T result)
Future.
result - | Method Detail |
|---|
public boolean cancel(boolean bln)
cancel in interface Future<T>bln - Whether r not to attempt to cancel the task.
public boolean isCancelled()
isCancelled in interface Future<T>bln - Whether r not to attempt to cancel the task.
public boolean isDone()
isDone in interface Future<T>
public T get()
throws InterruptedException,
ExecutionException
get in interface Future<T>InterruptedException
ExecutionException
public T get(long l,
TimeUnit tu)
throws InterruptedException,
ExecutionException,
TimeoutException
get in interface Future<T>InterruptedException
ExecutionException
TimeoutException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||