public class AnnounceRPC extends DispatchHandler
| Constructor and Description |
|---|
AnnounceRPC(PeerBean peerBean,
ConnectionBean connectionBean)
Constructor that registers this RPC with the message handler.
|
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
broadcast(PeerAddress remotePeer,
ConnectionConfiguration configuration,
ChannelCreator channelCreator) |
void |
handleResponse(Message message,
PeerConnection peerConnection,
boolean sign,
Responder responder)
If the message is OK, that has been previously checked by the user using checkMessage, a reply to the message is
generated here.
|
FutureResponse |
ping(PeerAddress remotePeer,
ConnectionConfiguration configuration,
ChannelCreator channelCreator) |
connectionBean, createMessage, createResponseMessage, createResponseMessage, forwardMessage, peerBean, register, register, signpublic AnnounceRPC(PeerBean peerBean, ConnectionBean connectionBean)
peerBean - The peer bean that contains data that is unique for each peerconnectionBean - The connection bean that is unique per connection (multiple
peers can share a single connection)public FutureResponse broadcast(PeerAddress remotePeer, ConnectionConfiguration configuration, ChannelCreator channelCreator)
public FutureResponse ping(PeerAddress remotePeer, ConnectionConfiguration configuration, ChannelCreator channelCreator)
public void handleResponse(Message message, PeerConnection peerConnection, boolean sign, Responder responder) throws Exception
DispatchHandlerhandleResponse in class DispatchHandlermessage - Request messagesign - Flag to indicate if message is signedException - Any exceptionCopyright © 2014. All rights reserved.