public class FutureClusterResponses extends DefaultNoticeableFuture<ClusterNodeResponses>
Constructor and Description |
---|
FutureClusterResponses(Set<String> clusterNodeIds) |
Modifier and Type | Method and Description |
---|---|
boolean |
addClusterNodeResponse(ClusterNodeResponse clusterNodeResponse) |
ClusterNodeResponses |
get() |
ClusterNodeResponses |
get(long timeout,
TimeUnit unit) |
BlockingQueue<ClusterNodeResponse> |
getPartialResults() |
addFutureListener, done, removeFutureListener, set, setException
public boolean addClusterNodeResponse(ClusterNodeResponse clusterNodeResponse)
public ClusterNodeResponses get() throws InterruptedException
get
in interface Future<ClusterNodeResponses>
get
in class FutureTask<ClusterNodeResponses>
InterruptedException
public ClusterNodeResponses get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException
get
in interface Future<ClusterNodeResponses>
get
in class FutureTask<ClusterNodeResponses>
InterruptedException
TimeoutException
public BlockingQueue<ClusterNodeResponse> getPartialResults()