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> |
getFutureRequests()
Returns back those futures that are still running.
|
FutureRouting |
getFutureRouting()
Returns the future object that was used for the routing.
|
void |
setFutureRouting(FutureRouting futureRouting)
Sets the future object that was used for the routing.
|
addCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListeners, removeCancel, removeListener, self, setCompletedAndNotify, setFailed, setFailed, setFailed, setFailed, setFailedpublic FutureDHT(DHTBuilder<?> builder)
public DHTBuilder<?> builder()
public FutureForkJoin<FutureResponse> getFutureRequests()
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 getFutureRouting()
public void setFutureRouting(FutureRouting futureRouting)
futureRouting - The future object to setCopyright © 2014. All rights reserved.