public abstract class FutureDHT<K extends BaseFuture> extends BaseFutureImpl<K>
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureDHT(DHTBuilder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFutureDHTReleaseListener(ChannelCreator channelCreator)
Adds a listener to the response future and releases all aquired channels in channel creator.
|
K |
addRequests(FutureResponse futureResponse)
Adds all requests that have been created for the DHT operations.
|
DHTBuilder<?> |
builder() |
FutureForkJoin<FutureResponse> |
futureRequests()
Returns back those futures that are still running.
|
FutureRouting |
futureRouting()
Returns the future object that was used for the routing.
|
void |
futureRouting(FutureRouting futureRouting)
Sets the future object that was used for the routing.
|
addCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, completedAndNotify, failed, failed, failed, failed, failed, failedReason, isCompleted, isFailed, isSuccess, notifyListeners, removeCancel, removeListener, self, self, typepublic FutureDHT(DHTBuilder<?> builder)
public DHTBuilder<?> builder()
public FutureForkJoin<FutureResponse> futureRequests()
public K addRequests(FutureResponse futureResponse)
futureResponse - The futurRepsonse that has been createdpublic void addFutureDHTReleaseListener(ChannelCreator channelCreator)
channelCreator - The channel creator that will be shutdown and all connections will be closedpublic FutureRouting futureRouting()
public void futureRouting(FutureRouting futureRouting)
futureRouting - The future object to setCopyright © 2014. All rights reserved.