Package com.yahoo.messagebus
Class EmptyReply
- java.lang.Object
-
- com.yahoo.messagebus.Routable
-
- com.yahoo.messagebus.Reply
-
- com.yahoo.messagebus.EmptyReply
-
public final class EmptyReply extends Reply
The empty reply is the only concrete implementation of a message that is offered by the MessageBus. It is used to generate replies to events that occur within the messagebus, and since the messagebus by design knows nothing about the messages that have been implemented by the users it requires a class such as this.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description EmptyReply()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yahoo.text.Utf8String
getProtocol()
Implements the getProtocol() function of Routable to identify this reply as the reserved type.int
getType()
Implements the getType() function of the root class Routable to identify this reply as the reserved type '0'.-
Methods inherited from class com.yahoo.messagebus.Reply
addError, getError, getErrorCodes, getErrors, getMessage, getNumErrors, getRetryDelay, hasErrors, hasFatalErrors, setMessage, setRetryDelay, swapState
-
Methods inherited from class com.yahoo.messagebus.Routable
discard, getCallStack, getContext, getTrace, popHandler, pushHandler, setContext
-
-
-
-
Method Detail
-
getType
public int getType()
Implements the getType() function of the root class Routable to identify this reply as the reserved type '0'.
-
getProtocol
public com.yahoo.text.Utf8String getProtocol()
Implements the getProtocol() function of Routable to identify this reply as the reserved type. This is done by an empty string.- Specified by:
getProtocol
in classRoutable
- Returns:
- The string "".
-
-