Class JsonMessage

    • Constructor Detail

      • JsonMessage

        public JsonMessage()
    • Method Detail

      • getMessage

        public Map<String,​Object> getMessage()
        The JSON message as an object.
      • setMessage

        public void setMessage​(Map<String,​Object> message)
        The JSON message as an object.
      • getContext

        public MessageContext getContext()
        The context of the message, such as the topic where the message was published.
      • setContext

        public void setContext​(MessageContext context)
        The context of the message, such as the topic where the message was published.
      • withContext

        public JsonMessage withContext​(MessageContext context)
        The context of the message, such as the topic where the message was published.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object