Uses of Class
com.yahoo.messagebus.Message
Package
Description
This package contains the main API of the message bus.
This package declares the API of the network layer required by the message bus.
This package contains an RPC implementation of the Network interface declared in the com.yahoo.messagebus.network package.
This package contains all classes and interfaces that concern routing over message bus.
This package contains utility classes for the unit tests in the com.yahoo.messagebus package.
-
Uses of Message in com.yahoo.messagebus
Modifier and TypeMethodDescriptionReply.getMessage()
Returns the message to which this is a reply.Message.setRetry
(int retry) Sets the number of times the sending of this message has been retried.Sets a new route for this routableMessage.setTimeReceived
(long timeReceived) Sets the timestamp for when this message was last seen by message bus to the given time in milliseconds since epoch.Message.setTimeReceivedNow()
This is a convenience method to callsetTimeReceived(long)
passing the current time as argument.Message.setTimeRemaining
(long timeRemaining) Sets the number of milliseconds that remain before this message times out.Modifier and TypeMethodDescriptionvoid
DestinationSession.acknowledge
(Message msg) Convenience method for acknowledging a message for its sender.boolean
boolean
boolean
boolean
boolean
Returns whether or not the given message can be sent according to the current state of this policy.void
MessageBus.deliverMessage
(Message msg, String session) void
Messenger.deliverMessage
(Message msg, MessageHandler handler) Convenience method to post aMessenger.Task
that delivers aMessage
to aMessageHandler
to the queue of tasks to be executed.void
DestinationSession.handleMessage
(Message msg) void
IntermediateSession.handleMessage
(Message msg) void
MessageBus.handleMessage
(Message msg) void
MessageHandler.handleMessage
(Message message) This function is called when a message arrives.void
SendProxy.handleMessage
(Message msg) void
Sequencer.handleMessage
(Message msg) All messages pass through this handler when being sent by the owning source session.void
AllPassThrottlePolicy.processMessage
(Message msg) void
DynamicThrottlePolicy.processMessage
(Message message) void
StaticThrottlePolicy.processMessage
(Message message) void
ThrottlePolicy.processMessage
(Message message) This method is called once for every message that was accepted byThrottlePolicy.canSend(Message, int)
and sent.Sends a new message.This is a convenience function to assign a given route to the given message, and then pass it to the otherSourceSession.send(Message)
method of this session.This is a convenience method to callSourceSession.send(Message,String,boolean)
with afalse
value for the 'parseIfNotFound' parameter.This is a convenience function to assign a named route to the given message, and then pass it to the otherSourceSession.send(Message)
method of this session.SourceSession.sendBlocking
(Message msg) This is a blocking proxy to theSourceSession.send(Message)
method.void
Reply.setMessage
(Message msg) Sets the message to which this is a reply. -
Uses of Message in com.yahoo.messagebus.network
Modifier and TypeMethodDescriptionvoid
NetworkMultiplexer.deliverMessage
(Message message, String session) void
NetworkOwner.deliverMessage
(Message message, String session) All messages that arrive in the network layer is passed to its owner through this function.void
Network.send
(Message msg, List<RoutingNode> recipients) Send a message to the given recipients. -
Uses of Message in com.yahoo.messagebus.network.local
Modifier and TypeMethodDescriptionvoid
LocalNetwork.send
(Message msg, List<RoutingNode> recipients) -
Uses of Message in com.yahoo.messagebus.network.rpc
Modifier and TypeMethodDescriptionprotected abstract com.yahoo.jrt.Request
RPCSend.encodeRequest
(com.yahoo.component.Version version, Route route, RPCServiceAddress address, Message msg, long timeRemaining, byte[] payload, int traceLevel) protected com.yahoo.jrt.Request
RPCSendV2.encodeRequest
(com.yahoo.component.Version version, Route route, RPCServiceAddress address, Message msg, long timeRemaining, byte[] payload, int traceLevel) void
RPCNetwork.send
(Message msg, List<RoutingNode> recipients) -
Uses of Message in com.yahoo.messagebus.routing
Modifier and TypeMethodDescriptionRoutingContext.getMessage()
Returns the message being routed.RoutingNode.getMessage()
Returns the message being routed.ModifierConstructorDescriptionRoutingNode
(MessageBus mbus, Network net, Resender resender, ReplyHandler handler, Message msg) Constructs a new instance of this class. -
Uses of Message in com.yahoo.messagebus.test
Modifier and TypeMethodDescriptionvoid
QueueAdapter.handleMessage
(Message message) void
Receptor.handleMessage
(Message msg)