|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChordFuture
This interface represents the result of an asynchronouse invocation on an
implementation of AsynChord
.
The methods:
AsynChord#insertAsync(Key, Serializable)
AsynChord#removeAsync(Key, Serializable)
AsynChord#retrieveAsync(Key)
Method Summary | |
---|---|
java.lang.Throwable |
getThrowable()
|
boolean |
isDone()
Method to test if the method associated with this has been finished. |
void |
waitForBeingDone()
This method blocks the calling thread until the execution of the method associated with this has been finished. |
Method Detail |
---|
java.lang.Throwable getThrowable()
null
. If
isDone()
returns true
and this returns
null
the associated method has been executed
successfully.boolean isDone() throws ServiceException
true
if the method associated with this has
finished successfully.
ServiceException
- Thrown if the execution has not been successful. Contains the
Throwable
that can be obtained by
getThrowable()
as cause.void waitForBeingDone() throws ServiceException, java.lang.InterruptedException
ServiceException
- Thrown if the execution has not been successful. Contains the
Throwable
that can be obtained by
getThrowable()
as cause.
java.lang.InterruptedException
- Occurs if the thread waiting with help of this method has
been interrupted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |