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().
|
Method Summary |
Set<Serializable> |
getResult()
Method to obtain the result of the retrieve operation associated with
this. |
getResult
Set<Serializable> getResult()
throws ServiceException,
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.
InterruptedException - If the thread, which invokes this method, has been
interrupted while waiting for the result.
Copyright © 2004-2008 Karsten Loesing, Sven Kaffille - Distributed and Mobile Systems Group, Lehrstuhl für Praktische Informatik, Universität Bamberg. All Rights Reserved.