Uses of Class
com.yahoo.messagebus.Message
Packages that use 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
Methods in com.yahoo.messagebus that return MessageModifier 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.Methods in com.yahoo.messagebus with parameters of type MessageModifier and TypeMethodDescriptionvoidDestinationSession.acknowledge(Message msg) Convenience method for acknowledging a message for its sender.booleanbooleanbooleanbooleanbooleanReturns whether or not the given message can be sent according to the current state of this policy.voidMessageBus.deliverMessage(Message msg, String session) voidMessenger.deliverMessage(Message msg, MessageHandler handler) Convenience method to post aMessenger.Taskthat delivers aMessageto aMessageHandlerto the queue of tasks to be executed.voidDestinationSession.handleMessage(Message msg) voidIntermediateSession.handleMessage(Message msg) voidMessageBus.handleMessage(Message msg) voidMessageHandler.handleMessage(Message message) This function is called when a message arrives.voidSendProxy.handleMessage(Message msg) voidSequencer.handleMessage(Message msg) All messages pass through this handler when being sent by the owning source session.voidAllPassThrottlePolicy.processMessage(Message msg) voidDynamicThrottlePolicy.processMessage(Message message) voidStaticThrottlePolicy.processMessage(Message message) voidThrottlePolicy.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 afalsevalue 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.voidReply.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 MessageModifier and TypeMethodDescriptionvoidNetworkMultiplexer.deliverMessage(Message message, String session) voidNetworkOwner.deliverMessage(Message message, String session) All messages that arrive in the network layer is passed to its owner through this function.voidNetwork.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 MessageModifier and TypeMethodDescriptionvoidLocalNetwork.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 MessageModifier and TypeMethodDescriptionprotected abstract com.yahoo.jrt.RequestRPCSend.encodeRequest(com.yahoo.component.Version version, Route route, RPCServiceAddress address, Message msg, long timeRemaining, byte[] payload, int traceLevel) protected com.yahoo.jrt.RequestRPCSendV2.encodeRequest(com.yahoo.component.Version version, Route route, RPCServiceAddress address, Message msg, long timeRemaining, byte[] payload, int traceLevel) voidRPCNetwork.send(Message msg, List<RoutingNode> recipients) -
Uses of Message in com.yahoo.messagebus.routing
Methods in com.yahoo.messagebus.routing that return MessageModifier and TypeMethodDescriptionRoutingContext.getMessage()Returns the message being routed.RoutingNode.getMessage()Returns the message being routed.Constructors in com.yahoo.messagebus.routing with parameters of type MessageModifierConstructorDescriptionRoutingNode(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.testMethods in com.yahoo.messagebus.test that return MessageMethods in com.yahoo.messagebus.test with parameters of type MessageModifier and TypeMethodDescriptionvoidQueueAdapter.handleMessage(Message message) voidReceptor.handleMessage(Message msg)