Interface ClientReceiveContext<T>

    • Method Detail

      • type

        InboundType type()
        Type of this response.
        Returns:
        Type of this response.
      • payload

        T payload()
        Returns the inbound message.
        Returns:
        Message.
      • outboundContext

        ClientOutboundContext<T> outboundContext()
        Returns the outbound context.
        Returns:
        Outbound context.
      • overrideMessage

        void overrideMessage​(T msg)
        Overrides the received message with the specified one.
        Parameters:
        msg - New message that should replace the received one.
      • readMetaData

        Optional<MessageMetaData> readMetaData()
        Reads the message's meta-data.
        Returns:
        Message's meta-data.