|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A future is a placeholder for a 'return value' that is not yet computed. A future can either be resolved into a value or it can be ruined by an exception.
| Method Summary | |
java.lang.Object |
get()
Used to retrieve the real value from the future. |
void |
resolve(java.lang.Object result)
Used to resolve the future into the given result object. |
void |
ruin(java.lang.Exception exception)
Used to ruin the future with the given exception. |
| Method Detail |
public void resolve(java.lang.Object result)
public void ruin(java.lang.Exception exception)
public java.lang.Object get()
throws java.lang.Exception
java.lang.Exception - if the future has been ruined with an exception.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||