public class SendProxy extends Object implements MessageHandler, ReplyHandler
RoutingNode
.Constructor and Description |
---|
SendProxy(MessageBus mbus,
com.yahoo.messagebus.network.Network net,
com.yahoo.messagebus.routing.Resender resender)
Constructs a new instance of this class to maintain sending of a single message.
|
Modifier and Type | Method and Description |
---|---|
void |
handleMessage(Message msg)
This function is called when a message arrives.
|
void |
handleReply(Reply reply)
This function is called when a reply arrives.
|
public SendProxy(MessageBus mbus, com.yahoo.messagebus.network.Network net, com.yahoo.messagebus.routing.Resender resender)
mbus
- The message bus that owns this.net
- The network layer to transmit through.resender
- The resender to use.public void handleMessage(Message msg)
MessageHandler
handleMessage
in interface MessageHandler
msg
- The message that arrived.public void handleReply(Reply reply)
ReplyHandler
handleReply
in interface ReplyHandler
reply
- The reply that arrived.Copyright © 2018. All rights reserved.