|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.Promise<T>
public abstract class Promise<T>
A promise, continuation style code for java.
| Constructor Summary | |
|---|---|
Promise()
Get an instance of Promise. |
|
| Method Summary | |
|---|---|
protected abstract T |
execute()
Do the actual work required to get the Object we're promised. |
T |
get()
Get the object. |
java.lang.String |
toString()
Print me. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Promise()
| Method Detail |
|---|
public final T get()
throws BrokenPromiseException
BrokenPromiseException - if there's a problem getting what
we were promised.public java.lang.String toString()
toString in class java.lang.Object
protected abstract T execute()
throws BrokenPromiseException
BrokenPromiseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||