public class QuitRPC extends ReplyHandler
| Constructor and Description |
|---|
QuitRPC(PeerBean peerBean,
ConnectionBean connectionBean) |
| Modifier and Type | Method and Description |
|---|---|
Message |
handleResponse(Message message,
boolean sign)
If the message is OK, that has been previously checked by the user using
checkMessage, a reply to the message is generated here.
|
FutureResponse |
quit(PeerAddress remotePeer,
ChannelCreator channelCreator,
boolean forceTCP)
Sends a message that indicates this peer is about to quit.
|
createMessage, createResponseMessage, exceptionCaught, forwardMessage, getConnectionBean, getPeerBean, registerIoHandler, setSignReplybindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic QuitRPC(PeerBean peerBean, ConnectionBean connectionBean)
public FutureResponse quit(PeerAddress remotePeer, ChannelCreator channelCreator, boolean forceTCP)
remotePeer - The remote peer to send this requestchannelCreator - The channel creator that creates connectionsforceTCP - Set to true if the communication should be TCP, default is UDPpublic Message handleResponse(Message message, boolean sign) throws Exception
ReplyHandlerhandleResponse in class ReplyHandlermessage - Request messageExceptionCopyright © 2013. All Rights Reserved.