Uses of Class
com.yahoo.messagebus.Message
-
Packages that use Message Package Description com.yahoo.messagebus This package contains the main API of the message bus.com.yahoo.messagebus.network This package declares the API of the network layer required by the message bus.com.yahoo.messagebus.network.local com.yahoo.messagebus.network.rpc This package contains an RPC implementation of the Network interface declared in the com.yahoo.messagebus.network package.com.yahoo.messagebus.routing This package contains all classes and interfaces that concern routing over message bus.com.yahoo.messagebus.test This package contains utility classes for the unit tests in the com.yahoo.messagebus package. -
-
Uses of Message in com.yahoo.messagebus
Methods in com.yahoo.messagebus that return Message Modifier and Type Method Description Message
Reply. getMessage()
Returns the message to which this is a reply.Message
Message. setRetry(int retry)
Sets the number of times the sending of this message has been retried.Message
Message. setRoute(Route route)
Sets a new route for this routableMessage
Message. 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
Message. setTimeReceivedNow()
This is a convenience method to callsetTimeReceived(long)
passing the current time as argument.Message
Message. setTimeRemaining(long timeRemaining)
Sets the number of milliseconds that remain before this message times out.Methods in com.yahoo.messagebus with parameters of type Message Modifier and Type Method Description void
DestinationSession. acknowledge(Message msg)
Convenience method for acknowledging a message for its sender.boolean
AllPassThrottlePolicy. canSend(Message msg, int pendingCount)
boolean
DynamicThrottlePolicy. canSend(Message message, int pendingCount)
boolean
RateThrottlingPolicy. canSend(Message message, int pendingCount)
boolean
StaticThrottlePolicy. canSend(Message message, int pendingCount)
boolean
ThrottlePolicy. canSend(Message message, int pendingCount)
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.Result
SourceSession. send(Message message)
Sends a new message.Result
SourceSession. send(Message msg, Route route)
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.Result
SourceSession. send(Message msg, String routeName)
This is a convenience method to callSourceSession.send(Message,String,boolean)
with afalse
value for the 'parseIfNotFound' parameter.Result
SourceSession. send(Message msg, String routeName, boolean parseIfNotFound)
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.Result
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
Methods in com.yahoo.messagebus.network with parameters of type Message Modifier and Type Method Description void
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
Methods in com.yahoo.messagebus.network.local with parameters of type Message Modifier and Type Method Description void
LocalNetwork. send(Message msg, List<RoutingNode> recipients)
-
Uses of Message in com.yahoo.messagebus.network.rpc
Methods in com.yahoo.messagebus.network.rpc with parameters of type Message Modifier and Type Method Description protected 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
RPCSendV1. 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
Methods in com.yahoo.messagebus.routing that return Message Modifier and Type Method Description Message
RoutingContext. getMessage()
Returns the message being routed.Message
RoutingNode. getMessage()
Returns the message being routed.Constructors in com.yahoo.messagebus.routing with parameters of type Message Constructor Description RoutingNode(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
Subclasses of Message in com.yahoo.messagebus.test Modifier and Type Class Description class
SimpleMessage
Methods in com.yahoo.messagebus.test that return Message Modifier and Type Method Description Message
Receptor. getMessage(int seconds)
Methods in com.yahoo.messagebus.test with parameters of type Message Modifier and Type Method Description void
QueueAdapter. handleMessage(Message message)
void
Receptor. handleMessage(Message msg)
-