|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vinculumtech.platform.async.Future
The Future class is a convenience function that allows for asynchronous
invocations handled by a NullaryFunction. The Result object can
be tested to see if the long running NullaryFunction has completed.
| Constructor Summary | |
Future()
|
|
Future(NullaryFunction function)
|
|
| Method Summary | |
Result |
getResult()
Retrieves the Result object the returned value from the NullaryFunction will be given. |
Result |
invoke()
Invokes the NullaryFunction provided on the constructor. |
Result |
invoke(NullaryFunction function)
Invokes the given NullaryFunction. |
void |
setFunction(NullaryFunction function)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Future()
public Future(NullaryFunction function)
| Method Detail |
public Result getResult()
public void setFunction(NullaryFunction function)
public Result invoke(NullaryFunction function)
function -
public Result invoke()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||