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.
    Simon Thoresen Hult
    • Constructor Detail

      • EmptyReply

        public EmptyReply()
    • Method Detail

      • 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
        The number '0'.
      • getProtocol

        public 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
        The string "".