K - The type of the future that takes care of all the RPC futurespublic interface OperationMapper<K extends FutureDHT<?>>
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
create(ChannelCreator channelCreator,
PeerAddress remotePeerAddress)
Creates a single RPC.
|
void |
interMediateResponse(FutureResponse futureResponse)
Whenever a single future is finished, then this method is called.
|
void |
response(K future)
If the response over all futures arrived (all that were created with
create(ChannelCreator, PeerAddress)
). |
FutureResponse create(ChannelCreator channelCreator, PeerAddress remotePeerAddress)
channelCreator - The channel creator to creade a UDP or TCP channelremotePeerAddress - The address of the remote peervoid response(K future)
create(ChannelCreator, PeerAddress)
).future - The overall future, typically FutureDHT or similarvoid interMediateResponse(FutureResponse futureResponse)
futureResponse - The future object from an RPCCopyright © 2014. All rights reserved.