A B C D E F G H I L M N P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ACCEPTED - Static variable in class com.yahoo.messagebus.Result
- acknowledge(Message) - Method in class com.yahoo.messagebus.DestinationSession
-
Conveniece method for acknowledging a message back to the sender.
- addChild(TraceNode) - Method in class com.yahoo.messagebus.TraceNode
-
Adds a child node to this.
- addChild(String) - Method in class com.yahoo.messagebus.TraceNode
-
Convenience method to add a child node containing a note to this.
- addChildren(List<TraceNode>) - Method in class com.yahoo.messagebus.TraceNode
-
Adds a list of child nodes to this.
- addError(Error) - Method in class com.yahoo.messagebus.Reply
-
Add an error to this reply.
- addProtocol(Protocol) - Method in class com.yahoo.messagebus.MessageBusParams
-
Adds a new protocol to this.
- addProtocols(List<Protocol>) - Method in class com.yahoo.messagebus.MessageBusParams
-
Registers multiple protocols with this by calling
MessageBusParams.addProtocol(Protocol)
multiple times. - AllPassThrottlePolicy - Class in com.yahoo.messagebus
-
This is an implementation of the
ThrottlePolicy
that passes all requests (no real throttling). - AllPassThrottlePolicy() - Constructor for class com.yahoo.messagebus.AllPassThrottlePolicy
- APP_FATAL_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An application specific non-recoverable error.
- APP_TRANSIENT_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An application specific transient error.
B
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- Builder(MessagebusConfig) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Builder
- Builder(MessagebusConfig.Routingtable) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- Builder(MessagebusConfig.Routingtable.Hop) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- Builder(MessagebusConfig.Routingtable.Route) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
C
- CallStack - Class in com.yahoo.messagebus
-
An wrapper around a stack of frame objects that is aware of the message that owns it.
- CallStack() - Constructor for class com.yahoo.messagebus.CallStack
- canSend(Message, int) - Method in class com.yahoo.messagebus.AllPassThrottlePolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.RateThrottlingPolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
- canSend(Message, int) - Method in interface com.yahoo.messagebus.ThrottlePolicy
-
Returns whether or not the given message can be sent according to the current state of this policy.
- clear() - Method in class com.yahoo.messagebus.CallStack
-
Clear this call stack.
- clear() - Method in class com.yahoo.messagebus.Trace
-
Remove all trace information and set the trace level to 0.
- clear() - Method in class com.yahoo.messagebus.TraceNode
-
Remove all trace information from this tree.
- clearPolicyCache() - Method in class com.yahoo.messagebus.ProtocolRepository
-
Clears the internal cache of routing policies.
- close() - Method in class com.yahoo.messagebus.DestinationSession
-
This method unregisters this session from message bus, effectively disabling any more messages from being delivered to the message handler.
- close() - Method in class com.yahoo.messagebus.IntermediateSession
-
This method unregisters this session from message bus, effectively disabling any more messages from being delivered to the message handler.
- close() - Method in class com.yahoo.messagebus.SourceSession
-
Reject all new messages and wait until no messages are pending.
- com.yahoo.messagebus - package com.yahoo.messagebus
-
This package contains the main API of the message bus.
- compact() - Method in class com.yahoo.messagebus.TraceNode
-
Compact this tree.
- compareTo(TraceNode) - Method in class com.yahoo.messagebus.TraceNode
- COMPONENT - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces information about which internal components are processing a routable.
- CONFIG_DEF_MD5 - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_NAME - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_NAMESPACE - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_SCHEMA - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_VERSION - Static variable in class com.yahoo.messagebus.MessagebusConfig
- ConfigAgent - Class in com.yahoo.messagebus
-
This class implements subscription to message bus config.
- ConfigAgent(ConfigURI, ConfigHandler) - Constructor for class com.yahoo.messagebus.ConfigAgent
-
Create a config agent that will obtain config for the given handler and configure it programmatically.
- ConfigAgent(MessagebusConfig, ConfigHandler) - Constructor for class com.yahoo.messagebus.ConfigAgent
-
Create a config agent that will configure the given handler with the given config.
- ConfigAgent(String, ConfigHandler) - Constructor for class com.yahoo.messagebus.ConfigAgent
-
Create a config agent that will obtain config for the given handler and configure it programmatically.
- ConfigHandler - Interface in com.yahoo.messagebus
-
This class declares those methods required to be a handler for an instance of the
ConfigAgent
class. - configure(MessagebusConfig) - Method in class com.yahoo.messagebus.ConfigAgent
- CONNECTION_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A connection problem occured while sending.
- createDestinationSession(DestinationSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
Creates a destination session on top of this message bus using the given handlers and parameter object.
- createDestinationSession(String, boolean, MessageHandler) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createDestinationSession(DestinationSessionParams)
with default values for theDestinationSessionParams
object. - createIntermediateSession(IntermediateSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
Creates an intermediate session on top of this message bus using the given handlers and parameter object.
- createIntermediateSession(String, boolean, MessageHandler, ReplyHandler) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createIntermediateSession(IntermediateSessionParams)
with default values for theIntermediateSessionParams
object. - createPolicy(String, String) - Method in interface com.yahoo.messagebus.Protocol
-
Create a policy of the named type with the named param passed to the constructor of that policy.
- createSourceSession(ReplyHandler) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createSourceSession(SourceSessionParams)
with default values for theSourceSessionParams
object. - createSourceSession(ReplyHandler, SourceSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createSourceSession(SourceSessionParams)
by first assigning the reply handler to the parameter object. - createSourceSession(SourceSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
Creates a source session on top of this message bus.
D
- decode(Version, byte[]) - Method in interface com.yahoo.messagebus.Protocol
-
Decodes the protocol specific data into a routable of the correct type.
- decode(String) - Static method in class com.yahoo.messagebus.TraceNode
-
Build a trace tree from the given string representation (possibly encoded using
TraceNode.encode()
). - DECODE_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An error occurred while decoding the message.
- deliverMessage(Message, MessageHandler) - Method in class com.yahoo.messagebus.Messenger
-
Convenience method to post a
Messenger.Task
that delivers aMessage
to aMessageHandler
to the queue of tasks to be executed. - deliverMessage(Message, String) - Method in class com.yahoo.messagebus.MessageBus
- deliverReply(Reply, ReplyHandler) - Method in class com.yahoo.messagebus.MessageBus
- deliverReply(Reply, ReplyHandler) - Method in class com.yahoo.messagebus.Messenger
-
Convenience method to post a
Messenger.Task
that delivers aReply
to aReplyHandler
to the queue of tasks to be executed. - DestinationSession - Class in com.yahoo.messagebus
-
A session supporting receiving and replying to messages.
- DestinationSessionParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus.createDestinationSession(DestinationSessionParams)
, all parameters are held by this class. - DestinationSessionParams() - Constructor for class com.yahoo.messagebus.DestinationSessionParams
-
Constructs a new instance of this class with default values.
- DestinationSessionParams(DestinationSessionParams) - Constructor for class com.yahoo.messagebus.DestinationSessionParams
-
Implements the copy constructor.
- destroy() - Method in class com.yahoo.messagebus.DestinationSession
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.IntermediateSession
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.MessageBus
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.Messenger
-
Sets the destroyed flag to true.
- destroy() - Method in interface com.yahoo.messagebus.Messenger.Task
-
This method is called for all tasks, even if
Messenger.Task.run()
was never called. - destroy() - Method in class com.yahoo.messagebus.NetworkMessageBus
-
Irreversibly destroys the content of this.
- destroy() - Method in class com.yahoo.messagebus.RPCMessageBus
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.Sequencer
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.SourceSession
-
Sets the destroyed flag to true.
- discard() - Method in class com.yahoo.messagebus.Routable
-
Discards this routable.
- dispatchGetConfig(ConfigInstance.Producer) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- DynamicThrottlePolicy - Class in com.yahoo.messagebus
-
This is an implementation of the
ThrottlePolicy
that offers dynamic limits to the number of pending messages aSourceSession
is allowed to have. - DynamicThrottlePolicy() - Constructor for class com.yahoo.messagebus.DynamicThrottlePolicy
-
Constructs a new instance of this policy and sets the appropriate default values of member data.
- DynamicThrottlePolicy(Timer) - Constructor for class com.yahoo.messagebus.DynamicThrottlePolicy
-
Constructs a new instance of this class using the given clock to calculate efficiency.
E
- EmptyReply - Class in com.yahoo.messagebus
-
The empty reply is the only concrete implementation of a message that is offered by the MessageBus.
- EmptyReply() - Constructor for class com.yahoo.messagebus.EmptyReply
- encode() - Method in class com.yahoo.messagebus.TraceNode
-
Returns a parseable (using
TraceNode.decode(String)
) string representation of this trace node. - encode(Version, Routable) - Method in interface com.yahoo.messagebus.Protocol
-
Encodes the protocol specific data of a routable into a byte array.
- ENCODE_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An error occured while encoding the message.
- enqueue(Messenger.Task) - Method in class com.yahoo.messagebus.Messenger
-
Enqueues the given task in the list of tasks that this worker is to process.
- Error - Class in com.yahoo.messagebus
-
This class implements the pair (code, message) that is used in Reply to hold errors.
- Error(int, String) - Constructor for class com.yahoo.messagebus.Error
-
This is the constructor used by anyone adding an error to a message.
- Error(int, String, String) - Constructor for class com.yahoo.messagebus.Error
-
This constructor is used by the network layer to properly tag deserialized errors with the hostname of whatever service produced the error.
- ERROR - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces whenever an Error is added to a Reply.
- ERROR_LIMIT - Static variable in class com.yahoo.messagebus.ErrorCode
-
No error codes are allowed to be this big.
- ErrorCode - Class in com.yahoo.messagebus
-
This interface contains the reserved error codes that are used for errors that occur within the messagebus.
- ErrorCode() - Constructor for class com.yahoo.messagebus.ErrorCode
F
- FATAL_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A general non-recoverable error, resending is not possible.
- forward(Routable) - Method in class com.yahoo.messagebus.IntermediateSession
-
Forwards a routable to the next hop in its route.
G
- getApproxSize() - Method in class com.yahoo.messagebus.Message
-
Obtain the approximate size of this message object in bytes.
- getBroadcastName() - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Returns whether or not to broadcast the name of this session on the network.
- getBroadcastName() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns whether or not to broadcast the name of this session on the network.
- getBucketSequence() - Method in class com.yahoo.messagebus.Message
-
Returns the identifier used to order message buckets.
- getCallStack() - Method in class com.yahoo.messagebus.Routable
-
Returns the callstack of this routable.
- getChild(int) - Method in class com.yahoo.messagebus.TraceNode
-
Returns the child trace node at the given index.
- getCode() - Method in class com.yahoo.messagebus.Error
-
Return the numerical code of this error.
- getConfig(MessagebusConfig.Builder) - Method in interface com.yahoo.messagebus.MessagebusConfig.Producer
- getConnectionSpec() - Method in class com.yahoo.messagebus.DestinationSession
-
Returns the connection spec string for this session.
- getConnectionSpec() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the connection spec string for this session.
- getConnectionSpec() - Method in class com.yahoo.messagebus.MessageBus
-
Returns the connection spec string for the network layer of this message bus.
- getContext() - Method in class com.yahoo.messagebus.Routable
-
Returns the context of this routable.
- getDefMd5() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getDefMd5() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getDefName() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getDefName() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getDefNamespace() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getDefNamespace() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getDefVersion() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getError() - Method in class com.yahoo.messagebus.Result
-
The error resulting from this send/forward if the message was not accepted.
- getError(int) - Method in class com.yahoo.messagebus.Reply
-
Returns the error at the given position.
- getErrorCodes() - Method in class com.yahoo.messagebus.Reply
-
Retrieves a set of integer error codes
- getErrors() - Method in class com.yahoo.messagebus.Reply
-
Retrieves a (read only) stream of the errors in this reply
- getLevel() - Method in class com.yahoo.messagebus.Trace
-
Returns the trace level.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Returns the maximum number of pending messages allowed.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.MessageBus
-
Gets maximum number of messages that can be received without being replied to yet.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the maximum number of pending messages.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Returns the maximum number of pending messages allowed.
- getMaxPendingSize() - Method in class com.yahoo.messagebus.MessageBus
-
Gets maximum combined size of messages that can be received without being replied to yet.
- getMaxPendingSize() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the maximum number of bytes allowed for pending messages.
- getMaxPendingSize() - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Returns the maximum total size of pending messages allowed.
- getMaxWindowSize() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Get the maximum number of pending operations allowed at any time.
- getMessage() - Method in class com.yahoo.messagebus.Error
-
Return the description of this error.
- getMessage() - Method in class com.yahoo.messagebus.Reply
-
Returns the message to which this is a reply.
- getMessageBus() - Method in class com.yahoo.messagebus.NetworkMessageBus
-
Returns the contained message bus object
- getMessageBusConfig() - Method in class com.yahoo.messagebus.MessageBusParams
- getMessageHandler() - Method in class com.yahoo.messagebus.DestinationSession
-
Returns the message handler of this session.
- getMessageHandler() - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Returns the handler to receive incoming messages.
- getMessageHandler() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the message handler of this session
- getMessageHandler() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns the handler to receive incoming messages.
- getMinWindowSize() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Get the minimum number of pending operations allowed at any time.
- getName() - Method in class com.yahoo.messagebus.DestinationSession
-
Returns the name of this session.
- getName() - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Returns the name to register with message bus.
- getName() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the name of this session
- getName() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns the name to register with message bus.
- getName() - Method in interface com.yahoo.messagebus.Protocol
-
Returns a global unique name for this protocol.
- getName(int) - Static method in class com.yahoo.messagebus.ErrorCode
-
Translates the given error code into its symbolic name.
- getNetwork() - Method in class com.yahoo.messagebus.NetworkMessageBus
-
Returns the network of this as a Network
- getNote() - Method in class com.yahoo.messagebus.TraceNode
-
Returns the note assigned to this node.
- getNumChildren() - Method in class com.yahoo.messagebus.TraceNode
-
Returns the number of child nodes of this.
- getNumErrors() - Method in class com.yahoo.messagebus.Reply
-
Returns the number of errors that this reply contains.
- getNumProtocols() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the number of protocols that are contained in this.
- getPendingCount() - Method in class com.yahoo.messagebus.MessageBus
-
Returns the number of messages received that have not been replied to yet.
- getPendingCount() - Method in class com.yahoo.messagebus.SourceSession
-
Returns the number of messages sent that have not been replied to yet
- getPendingSize() - Method in class com.yahoo.messagebus.MessageBus
-
Returns the size of messages received that have not been replied to yet.
- getPendingSize() - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Returns the total size of pending messages.
- getProtocol() - Method in class com.yahoo.messagebus.EmptyReply
-
Implements the getProtocol() function of Routable to identify this reply as the reserved type.
- getProtocol() - Method in class com.yahoo.messagebus.Routable
-
Return the name of the protocol that defines this routable.
- getProtocol(int) - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the protocol at the given index.
- getProtocol(Utf8Array) - Method in class com.yahoo.messagebus.MessageBus
- getProtocol(Utf8String) - Method in class com.yahoo.messagebus.MessageBus
- getProtocol(String) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Returns the protocol whose name matches the given argument.
- getReplyHandler() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the reply handler of this session.
- getReplyHandler() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns the handler to receive incoming replies.
- getReplyHandler() - Method in class com.yahoo.messagebus.SourceSession
-
Returns the reply handler of this session
- getReplyHandler() - Method in class com.yahoo.messagebus.SourceSessionParams
-
Returns the handler to receive incoming replies.
- getResender() - Method in class com.yahoo.messagebus.MessageBus
-
Returns the resender that is running within this message bus.
- getRetry() - Method in class com.yahoo.messagebus.Message
-
Returns the number of times the sending of this message has been retried.
- getRetryDelay() - Method in class com.yahoo.messagebus.Reply
-
Returns the retry request of this reply.
- getRetryEnabled() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message can be resent.
- getRetryPolicy() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the retry policy for the resender.
- getRoot() - Method in class com.yahoo.messagebus.Trace
-
Returns the root of the trace tree.
- getRoute() - Method in class com.yahoo.messagebus.Message
-
Returns the route of this routable
- getRoutingPolicy(Utf8String, String, String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a routing policy that corresponds to the argument protocol name, policy name and policy parameter.
- getRoutingPolicy(Utf8String, String, String) - Method in class com.yahoo.messagebus.ProtocolRepository
- getRoutingPolicy(String, String, String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a routing policy that corresponds to the argument protocol name, policy name and policy parameter.
- getRoutingPolicy(String, String, String) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Creates and returns a routing policy that matches the given arguments.
- getRoutingTable(Utf8String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a named routing table, may return null.
- getRoutingTable(String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a named routing table, may return null.
- getRPCNetwork() - Method in class com.yahoo.messagebus.RPCMessageBus
-
Returns the network of this as a RPCNetwork
- getSequenceId() - Method in class com.yahoo.messagebus.Message
-
Returns the identifier used to order messages.
- getService() - Method in class com.yahoo.messagebus.Error
-
Returns the name of the service on which this error occured.
- getThrottlePolicy() - Method in class com.yahoo.messagebus.SourceSessionParams
-
Returns the policy to use for throttling output.
- getTimeout() - Method in class com.yahoo.messagebus.SourceSessionParams
-
Returns the number of seconds a message can spend trying to succeed.
- getTimeReceived() - Method in class com.yahoo.messagebus.Message
-
Returns the timestamp for when this message was last seen by message bus.
- getTimeRemaining() - Method in class com.yahoo.messagebus.Message
-
Returns the number of milliseconds that remain before this message times out.
- getTimeRemainingNow() - Method in class com.yahoo.messagebus.Message
-
Returns the number of milliseconds that remain right now before this message times out.
- getTrace() - Method in class com.yahoo.messagebus.Routable
-
Returns the trace object of this routable.
- getType() - Method in class com.yahoo.messagebus.EmptyReply
-
Implements the getType() function of the root class Routable to identify this reply as the reserved type '0'.
- getType() - Method in class com.yahoo.messagebus.Routable
-
Returns the type of this routable.
- getWindowSizeBackOff() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- getWindowSizeIncrement() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
H
- handleMessage(Message) - Method in class com.yahoo.messagebus.DestinationSession
- handleMessage(Message) - Method in class com.yahoo.messagebus.IntermediateSession
- handleMessage(Message) - Method in class com.yahoo.messagebus.MessageBus
- handleMessage(Message) - Method in interface com.yahoo.messagebus.MessageHandler
-
This function is called when a message arrives.
- handleMessage(Message) - Method in class com.yahoo.messagebus.SendProxy
- handleMessage(Message) - Method in class com.yahoo.messagebus.Sequencer
-
All messages pass through this handler when being sent by the owning source session.
- handleReply(Reply) - Method in class com.yahoo.messagebus.IntermediateSession
- handleReply(Reply) - Method in class com.yahoo.messagebus.MessageBus
- handleReply(Reply) - Method in interface com.yahoo.messagebus.ReplyHandler
-
This function is called when a reply arrives.
- handleReply(Reply) - Method in class com.yahoo.messagebus.SendProxy
- handleReply(Reply) - Method in class com.yahoo.messagebus.Sequencer
-
Lookup the sequencing id of an incoming reply to pop the front of the corresponding queue, and then send the next message in line, if any.
- handleReply(Reply) - Method in class com.yahoo.messagebus.SourceSession
- HANDSHAKE_FAILED - Static variable in class com.yahoo.messagebus.ErrorCode
-
Version handshake failed for any reason.
- hasBucketSequence() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message contains a sequence bucket that should be respected, i.e.
- hasErrors() - Method in class com.yahoo.messagebus.Reply
-
Returns whether or not this reply contains any errors.
- hasFatalErrors() - Method in class com.yahoo.messagebus.Reply
-
Returns whether or not this reply contains any fatal errors.
- hasNote() - Method in class com.yahoo.messagebus.TraceNode
-
Returns whether or not a note is assigned to this node.
- hasProtocol(String) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Returns whether or not this repository contains a protocol with the given name.
- hasSequenceId() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message contains a sequence identifier that should be respected, i.e.
- hop - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- hop - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- hop() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- hop() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- hop(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- hop(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- hop(MessagebusConfig.Routingtable.Hop.Builder) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Add the given builder to this builder's list of Hop builders
- hop(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- hop(Collection<String>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- hop(List<MessagebusConfig.Routingtable.Hop.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Set the given list as this builder's list of Hop builders
- Hop(MessagebusConfig.Routingtable.Hop.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
I
- ignoreresult() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- ignoreresult(boolean) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- ILLEGAL_ROUTE - Static variable in class com.yahoo.messagebus.ErrorCode
-
The route of the message is illegal.
- INCOMPATIBLE_VERSION - Static variable in class com.yahoo.messagebus.ErrorCode
-
The target is running an incompatible version.
- IntermediateSession - Class in com.yahoo.messagebus
-
A session which supports receiving, forwarding and acknowledgement of messages.
- IntermediateSessionParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus.createIntermediateSession(IntermediateSessionParams)
, all parameters are held by this class. - IntermediateSessionParams() - Constructor for class com.yahoo.messagebus.IntermediateSessionParams
-
Constructs a new instance of this class with default values.
- IntermediateSessionParams(IntermediateSessionParams) - Constructor for class com.yahoo.messagebus.IntermediateSessionParams
-
Implements the copy constructor.
- isAccepted() - Method in class com.yahoo.messagebus.Result
-
Returns whether this message was accepted.
- isEmpty() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not this node is empty, i.e.
- isExpired() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message has expired.
- isFatal() - Method in class com.yahoo.messagebus.Error
-
Returns whether or not this error is fatal, i.e.
- isFatal(int) - Static method in class com.yahoo.messagebus.ErrorCode
- isLeaf() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not this is a leaf node.
- isMBusError(int) - Static method in class com.yahoo.messagebus.ErrorCode
- isRoot() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not this is a root node.
- isStrict() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not the children of this node are strictly ordered.
- isTransient(int) - Static method in class com.yahoo.messagebus.ErrorCode
L
- log - Static variable in class com.yahoo.messagebus.RateThrottlingPolicy
M
- Message - Class in com.yahoo.messagebus
-
A message is a child of Routable, it is not a reply, and it has a sequencing identifier.
- Message() - Constructor for class com.yahoo.messagebus.Message
- MessageBus - Class in com.yahoo.messagebus
-
A message bus contains the factory for creating sessions to send, receive and forward messages.
- MessageBus(Network, MessageBusParams) - Constructor for class com.yahoo.messagebus.MessageBus
-
Constructs an instance of message bus.
- MessageBus(Network, List<Protocol>) - Constructor for class com.yahoo.messagebus.MessageBus
-
Convenience constructor that proxies
MessageBus(Network, MessageBusParams)
by adding the given protocols to a defaultMessageBusParams
object. - MessageBus.SendBlockedMessages - Interface in com.yahoo.messagebus
- MessagebusConfig - Class in com.yahoo.messagebus
-
This class represents the root node of messagebus Copyright 2017 Yahoo Holdings.
- MessagebusConfig(MessagebusConfig.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig
- MessagebusConfig.Builder - Class in com.yahoo.messagebus
- MessagebusConfig.Producer - Interface in com.yahoo.messagebus
- MessagebusConfig.Routingtable - Class in com.yahoo.messagebus
-
This class represents messagebus.routingtable[]
- MessagebusConfig.Routingtable.Builder - Class in com.yahoo.messagebus
- MessagebusConfig.Routingtable.Hop - Class in com.yahoo.messagebus
-
This class represents messagebus.routingtable[].hop[]
- MessagebusConfig.Routingtable.Hop.Builder - Class in com.yahoo.messagebus
- MessagebusConfig.Routingtable.Route - Class in com.yahoo.messagebus
-
This class represents messagebus.routingtable[].route[]
- MessagebusConfig.Routingtable.Route.Builder - Class in com.yahoo.messagebus
- MessageBusParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus
constructor, all parameters are held by this class. - MessageBusParams() - Constructor for class com.yahoo.messagebus.MessageBusParams
-
Constructs a new instance of this parameter object with default values for all members.
- MessageBusParams(MessageBusParams) - Constructor for class com.yahoo.messagebus.MessageBusParams
-
Implements the copy constructor.
- MessageHandler - Interface in com.yahoo.messagebus
-
All classes that wants to handle messages that move through the messagebus need to implement this interface.
- Messenger - Class in com.yahoo.messagebus
-
This class implements a single thread that is able to process arbitrary tasks.
- Messenger() - Constructor for class com.yahoo.messagebus.Messenger
- Messenger.Task - Interface in com.yahoo.messagebus
-
Defines the required interface for tasks to be posted to this worker.
N
- name() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- name() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- name(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- name(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- NETWORK_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A fatal network error occured while sending.
- NETWORK_SHUTDOWN - Static variable in class com.yahoo.messagebus.ErrorCode
-
The network was shut down when attempting to send.
- NetworkMessageBus - Class in com.yahoo.messagebus
-
The combination of a messagebus and a network over which it may send data.
- NetworkMessageBus(Network, MessageBus) - Constructor for class com.yahoo.messagebus.NetworkMessageBus
- NO_ADDRESS_FOR_SERVICE - Static variable in class com.yahoo.messagebus.ErrorCode
-
No addresses found for the services of the message route.
- NO_SERVICES_FOR_ROUTE - Static variable in class com.yahoo.messagebus.ErrorCode
-
No services found for the message route.
- NONE - Static variable in class com.yahoo.messagebus.ErrorCode
-
The code is here for completeness.
- normalize() - Method in class com.yahoo.messagebus.TraceNode
-
Normalize this tree.
P
- POLICY_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
Exception thrown by routing policy.
- pop(Routable) - Method in class com.yahoo.messagebus.CallStack
-
Pop a frame from this stack.
- popHandler() - Method in class com.yahoo.messagebus.Routable
-
This is a convenience method for calling
CallStack.pop(Routable)
on theCallStack
of this Routable. - processMessage(Message) - Method in class com.yahoo.messagebus.AllPassThrottlePolicy
- processMessage(Message) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- processMessage(Message) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
- processMessage(Message) - Method in interface com.yahoo.messagebus.ThrottlePolicy
-
This method is called once for every message that was accepted by
ThrottlePolicy.canSend(Message, int)
and sent. - processReply(Reply) - Method in class com.yahoo.messagebus.AllPassThrottlePolicy
- processReply(Reply) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- processReply(Reply) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
- processReply(Reply) - Method in interface com.yahoo.messagebus.ThrottlePolicy
-
This method is called once for every reply that is received.
- protocol() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- protocol(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- Protocol - Interface in com.yahoo.messagebus
-
Interface implemented by the concrete application message protocol.
- ProtocolRepository - Class in com.yahoo.messagebus
-
Implements a thread-safe repository for protocols and their routing policies.
- ProtocolRepository() - Constructor for class com.yahoo.messagebus.ProtocolRepository
- push(ReplyHandler, Object) - Method in class com.yahoo.messagebus.CallStack
-
Push a handler onto the callstack of this message with a given context.
- pushHandler(ReplyHandler) - Method in class com.yahoo.messagebus.Routable
-
Pushes the given reply handler onto the call stack of this routable, also storing the current context.
- putProtocol(Protocol) - Method in class com.yahoo.messagebus.MessageBus
-
Adds a protocol to the internal repository of protocols, replacing any previous instance of the protocol and clearing the associated routing policy cache.
- putProtocol(Protocol) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Registers a protocol with this repository.
R
- RateThrottlingPolicy - Class in com.yahoo.messagebus
-
Throttling policy that throttles sending based on a desired rate.
- RateThrottlingPolicy(double) - Constructor for class com.yahoo.messagebus.RateThrottlingPolicy
- RateThrottlingPolicy(double, Timer) - Constructor for class com.yahoo.messagebus.RateThrottlingPolicy
- recipient - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- recipient() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- recipient(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- recipient(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- recipient(Collection<String>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- register(MessageBus.SendBlockedMessages) - Method in class com.yahoo.messagebus.MessageBus
- reload(long) - Method in class com.yahoo.messagebus.ConfigAgent
-
Force reload config.
- reply(Reply) - Method in class com.yahoo.messagebus.DestinationSession
-
Sends a reply to a message.
- Reply - Class in com.yahoo.messagebus
-
A reply is a response to a message that has been sent throught the messagebus.
- Reply() - Constructor for class com.yahoo.messagebus.Reply
- ReplyHandler - Interface in com.yahoo.messagebus
-
All classes that wants to handle replies that move through the messagebus need to implement this interface.
- Result - Class in com.yahoo.messagebus
-
Information on the outcome of initiating a send or forward on a session.
- Result(int, String) - Constructor for class com.yahoo.messagebus.Result
-
This constructor is a convencience function to allow simpler instantiation of a result that contains an error.
- Result(Error) - Constructor for class com.yahoo.messagebus.Result
-
This constructor assigns a given error to the member variable such that this result becomes unaccepted with a descriptive error.
- Routable - Class in com.yahoo.messagebus
-
Superclass for objects that can be either explicitly (Message) or implicitly (Reply) routed.
- Routable() - Constructor for class com.yahoo.messagebus.Routable
- route - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- route() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- route(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- route(MessagebusConfig.Routingtable.Route.Builder) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Add the given builder to this builder's list of Route builders
- route(List<MessagebusConfig.Routingtable.Route.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Set the given list as this builder's list of Route builders
- Route(MessagebusConfig.Routingtable.Route.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- routingtable - Variable in class com.yahoo.messagebus.MessagebusConfig.Builder
- routingtable() - Method in class com.yahoo.messagebus.MessagebusConfig
- routingtable(int) - Method in class com.yahoo.messagebus.MessagebusConfig
- routingtable(MessagebusConfig.Routingtable.Builder) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
-
Add the given builder to this builder's list of Routingtable builders
- routingtable(List<MessagebusConfig.Routingtable.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
-
Set the given list as this builder's list of Routingtable builders
- Routingtable(MessagebusConfig.Routingtable.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable
- RPCMessageBus - Class in com.yahoo.messagebus
-
The RPCMessageBus class wraps a MessageBus with an RPCNetwork and handles reconfiguration.
- RPCMessageBus(MessageBusParams, RPCNetworkParams) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
Constructs a new instance of this class.
- RPCMessageBus(MessageBusParams, RPCNetworkParams, String) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
Constructs a new instance of this class.
- RPCMessageBus(Protocol, String) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
This constructor requires a single protocol that it is to support, as well as the host application's config identifier.
- RPCMessageBus(List<Protocol>, RPCNetworkParams, String) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
This constructor requires an array of protocols that it is to support, as well as the host application's config identifier.
- run() - Method in class com.yahoo.messagebus.Messenger
- run() - Method in interface com.yahoo.messagebus.Messenger.Task
-
This method is called when being executed.
S
- selector() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- selector(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- send(Message) - Method in class com.yahoo.messagebus.SourceSession
-
Sends a new message.
- send(Message, Route) - Method in class com.yahoo.messagebus.SourceSession
-
This is a convenience function to assign a given route to the given message, and then pass it to the other
SourceSession.send(Message)
method of this session. - send(Message, String) - Method in class com.yahoo.messagebus.SourceSession
-
This is a convenience method to call
SourceSession.send(Message,String,boolean)
with afalse
value for the 'parseIfNotFound' parameter. - send(Message, String, boolean) - Method in class com.yahoo.messagebus.SourceSession
-
This is a convenience function to assign a named route to the given message, and then pass it to the other
SourceSession.send(Message)
method of this session. - SEND_ABORTED - Static variable in class com.yahoo.messagebus.ErrorCode
-
Sending aborted by route verification.
- SEND_QUEUE_CLOSED - Static variable in class com.yahoo.messagebus.ErrorCode
-
Sending was rejected because throttler is closed.
- SEND_QUEUE_FULL - Static variable in class com.yahoo.messagebus.ErrorCode
-
Sending was rejected because throttler capacity is full.
- SEND_RECEIVE - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces sending and receiving messages and replies on network level.
- sendBlocking(Message) - Method in class com.yahoo.messagebus.SourceSession
-
This is a blocking proxy to the
SourceSession.send(Message)
method. - SendProxy - Class in com.yahoo.messagebus
-
This class owns a message that is being sent by message bus.
- SendProxy(MessageBus, Network, Resender) - Constructor for class com.yahoo.messagebus.SendProxy
-
Constructs a new instance of this class to maintain sending of a single message.
- SEQUENCE_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An error occured while sequencing a message.
- Sequencer - Class in com.yahoo.messagebus
-
Sequencing is implemented as a message handler that is configured in a source session in that session's chain of linked message handlers.
- Sequencer(MessageHandler) - Constructor for class com.yahoo.messagebus.Sequencer
-
Constructs a new sequencer on top of the given async sender.
- SESSION_BUSY - Static variable in class com.yahoo.messagebus.ErrorCode
-
The recipient session is busy.
- setBroadcastName(boolean) - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Sets whether or not to broadcast the name of this session on the network.
- setBroadcastName(boolean) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets whether or not to broadcast the name of this session on the network.
- setContext(Object) - Method in class com.yahoo.messagebus.Routable
-
Sets a new context for this routable.
- setEfficiencyThreshold(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the lower efficiency threshold at which the algorithm should perform window size back off.
- setLevel(int) - Method in class com.yahoo.messagebus.Trace
-
Set the trace level.
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.MessageBus
-
Sets the maximum number of messages that can be received without being replied to yet.
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.MessageBusParams
-
Sets the maximum number of allowed pending messages.
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Sets the maximum number of pending messages allowed.
- setMaxPendingSize(int) - Method in class com.yahoo.messagebus.MessageBus
-
Sets the maximum size of messages that can be received without being replied to yet.
- setMaxPendingSize(int) - Method in class com.yahoo.messagebus.MessageBusParams
-
Sets the maximum number of bytes allowed for pending messages.
- setMaxPendingSize(long) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Sets the maximum total size of pending messages allowed.
- setMaxThroughput(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- setMaxWindowSize(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the maximium number of pending operations allowed at any time, in order to avoid using too much resources.
- setMessage(Message) - Method in class com.yahoo.messagebus.Reply
-
Sets the message to which this is a reply.
- setMessageBusConfig(MessagebusConfig) - Method in class com.yahoo.messagebus.MessageBusParams
- setMessageHandler(MessageHandler) - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Sets the handler to recive incoming messages.
- setMessageHandler(MessageHandler) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets the handler to recive incoming messages.
- setMinWindowSize(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the minimium number of pending operations allowed at any time, in order to keep a level of performance.
- setName(String) - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Sets the name to register with message bus.
- setName(String) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets the name to register with message bus.
- setReplyHandler(ReplyHandler) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets the handler to recive incoming replies.
- setReplyHandler(ReplyHandler) - Method in class com.yahoo.messagebus.SourceSessionParams
-
Sets the handler to recive incoming replies.
- setResizeRate(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the rate at which the window size is updated.
- setRetry(int) - Method in class com.yahoo.messagebus.Message
-
Sets the number of times the sending of this message has been retried.
- setRetryDelay(double) - Method in class com.yahoo.messagebus.Reply
-
Sets the retry delay request of this reply.
- setRetryEnabled(boolean) - Method in class com.yahoo.messagebus.Message
-
Sets whether or not this message can be resent.
- setRetryPolicy(RetryPolicy) - Method in class com.yahoo.messagebus.MessageBusParams
-
Sets the retry policy for the resender.
- setRoute(Route) - Method in class com.yahoo.messagebus.Message
-
Sets a new route for this routable
- setStrict(boolean) - Method in class com.yahoo.messagebus.TraceNode
-
Sets whether or not the children of this node are strictly ordered.
- setThrottlePolicy(ThrottlePolicy) - Method in class com.yahoo.messagebus.SourceSessionParams
-
Sets the policy to use for throttling output.
- setTimeout(double) - Method in class com.yahoo.messagebus.SourceSession
-
Sets the number of seconds a message can be attempted sent until it times out.
- setTimeout(double) - Method in class com.yahoo.messagebus.SourceSessionParams
-
Sets the number of seconds a message can be attempted sent until it times out.
- setTimeReceived(long) - Method in class com.yahoo.messagebus.Message
-
Sets the timestamp for when this message was last seen by message bus to the given time in milliseconds since epoch.
- setTimeReceivedNow() - Method in class com.yahoo.messagebus.Message
-
This is a convenience method to call
Message.setTimeReceived(long)
passing the current time as argument. - setTimeRemaining(long) - Method in class com.yahoo.messagebus.Message
-
Sets the numer of milliseconds that remain before this message times out.
- setupRouting(RoutingSpec) - Method in interface com.yahoo.messagebus.ConfigHandler
-
Sets the routing specification for this client.
- setupRouting(RoutingSpec) - Method in class com.yahoo.messagebus.MessageBus
- setWeight(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the weight for this client.
- setWindowSizeBackOff(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the factor of window size to back off to when the algorithm determines that efficiency is not increasing.
- setWindowSizeDecrementFactor(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the relative stepsize when decreasing window size.
- setWindowSizeIncrement(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the step size used when increasing window size.
- shouldTrace(int) - Method in class com.yahoo.messagebus.Trace
-
Check if information with the given level should be traced.
- shutdown() - Method in class com.yahoo.messagebus.ConfigAgent
-
Shuts down the config agent by unsubscribing to the messagebus config.
- size() - Method in class com.yahoo.messagebus.CallStack
-
Returns the number of elements of the callstack.
- sort() - Method in class com.yahoo.messagebus.TraceNode
-
Sort non-strict children recursively down the tree.
- SourceSession - Class in com.yahoo.messagebus
-
A session supporting sending new messages.
- SourceSessionParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus.createSourceSession(ReplyHandler, SourceSessionParams)
, all parameters are held by this class. - SourceSessionParams() - Constructor for class com.yahoo.messagebus.SourceSessionParams
-
Instantiates a parameter object with default values.
- SourceSessionParams(SourceSessionParams) - Constructor for class com.yahoo.messagebus.SourceSessionParams
-
Implements the copy constructor.
- SPLIT_MERGE - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces splitting messages and merging replies.
- start() - Method in class com.yahoo.messagebus.Messenger
-
Starts the internal thread.
- StaticThrottlePolicy - Class in com.yahoo.messagebus
-
This is an implementation of the
ThrottlePolicy
that offers static limits to the amount of pending data aSourceSession
is allowed to have. - StaticThrottlePolicy() - Constructor for class com.yahoo.messagebus.StaticThrottlePolicy
- subscribe() - Method in class com.yahoo.messagebus.ConfigAgent
-
Start listening for config updates.
- swap(CallStack) - Method in class com.yahoo.messagebus.CallStack
-
Swap the content of this and the argument stack.
- swap(Trace) - Method in class com.yahoo.messagebus.Trace
-
Swap the internals of this with another.
- swap(TraceNode) - Method in class com.yahoo.messagebus.TraceNode
-
Swap the internals of this tree with another.
- swapState(Routable) - Method in class com.yahoo.messagebus.Message
- swapState(Routable) - Method in class com.yahoo.messagebus.Reply
- swapState(Routable) - Method in class com.yahoo.messagebus.Routable
-
Swaps the state that makes this routable unique to another routable.
- sync() - Method in class com.yahoo.messagebus.MessageBus
-
Synchronize with internal threads.
- sync() - Method in class com.yahoo.messagebus.Messenger
-
Handshakes with the internal thread.
T
- ThrottlePolicy - Interface in com.yahoo.messagebus
-
An implementation of this interface is used by
SourceSession
to throttle output. - TIMEOUT - Static variable in class com.yahoo.messagebus.ErrorCode
-
A timeout occurred while sending.
- toString() - Method in class com.yahoo.messagebus.Error
- toString() - Method in class com.yahoo.messagebus.Trace
- toString() - Method in class com.yahoo.messagebus.TraceNode
- toString(int) - Method in class com.yahoo.messagebus.TraceNode
-
Generates a non-parseable, human-readable string representation of this trace node.
- trace(int, String) - Method in class com.yahoo.messagebus.Trace
-
Add the given note to the trace information if tracing is enabled for the given level.
- trace(int, String, boolean) - Method in class com.yahoo.messagebus.Trace
-
Add the given note to the trace information if tracing is enabled for the given level.
- Trace - Class in com.yahoo.messagebus
-
A Trace object contains ad-hoc string notes organized in a strict-loose tree.
- Trace() - Constructor for class com.yahoo.messagebus.Trace
-
Create an empty trace with level set to 0 (no tracing)
- Trace(int) - Constructor for class com.yahoo.messagebus.Trace
-
Create an empty trace with given level.
- TraceLevel - Class in com.yahoo.messagebus
-
This class defines the
Trace
levels used by message bus. - TraceLevel() - Constructor for class com.yahoo.messagebus.TraceLevel
- TraceNode - Class in com.yahoo.messagebus
-
This class contains the actual trace information of a
Trace
object. - TraceNode() - Constructor for class com.yahoo.messagebus.TraceNode
-
Create an empty trace tree.
- TRANSIENT_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A general transient error, resending is possible.
- trySend() - Method in interface com.yahoo.messagebus.MessageBus.SendBlockedMessages
-
Do what you want, but dont block.
- trySend() - Method in class com.yahoo.messagebus.SourceSession
U
- UNKNOWN_POLICY - Static variable in class com.yahoo.messagebus.ErrorCode
-
The policy specified in a route is unknown.
- UNKNOWN_PROTOCOL - Static variable in class com.yahoo.messagebus.ErrorCode
-
The protocol specified for the message is unknown.
- UNKNOWN_SESSION - Static variable in class com.yahoo.messagebus.ErrorCode
-
The session specified for the message is unknown.
- unregisterSession(String, boolean) - Method in class com.yahoo.messagebus.MessageBus
-
This method is invoked by the
IntermediateSession.destroy()
to unregister sessions from receiving data from message bus.
All Classes All Packages