de.uniba.wiai.lspi.chord.service
Interface ChordRetrievalFuture
- All Superinterfaces:
- ChordFuture
public interface ChordRetrievalFuture
- extends ChordFuture
This ChordFuture
represents the invocation result of
AsynChord#retrieveAsync(Key)
.
The result can be obtained with help of getResult()
.
- Version:
- 1.0.5
- Author:
- sven
Method Summary |
java.util.Set<java.io.Serializable> |
getResult()
Method to obtain the result of the retrieve operation associated with
this. |
getResult
java.util.Set<java.io.Serializable> getResult()
throws ServiceException,
java.lang.InterruptedException
- Method to obtain the result of the retrieve operation associated with
this. This method blocks the calling thread until the invocation of the
retrieve operation has finished (either by obtaining a result or a
Throwable
/Exception
that occured).
- Returns:
- The entries that have been retrieved. Empty
Set
if no
entries have been found.
- Throws:
ServiceException
- Thrown if the execution has not been successful. Contains the
Throwable
that can be obtained by
ChordFuture.getThrowable()
as cause.
java.lang.InterruptedException
- If the thread, which invokes this method, has been
interrupted while waiting for the result.