Class 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 Details

    • EmptyReply

      public EmptyReply()
  • Method Details

    • getType

      public int getType()
      Implements the getType() function of the root class Routable to identify this reply as the reserved type '0'.
      Specified by:
      getType in class Routable
      Returns:
      The number '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 class Routable
      Returns:
      The string "".