Class MessageDefault

    • Method Detail

      • getContent

        public <T,​StreamType,​U extends TypedContent<T,​StreamType>> U getContent()
        Specified by:
        getContent in interface Message
      • content

        public <T,​StreamType,​U extends TypedContent<T,​StreamType>> U content()
        Description copied from interface: Message
        This is a 'nice to have' method to make getting the content more readable from the Script language e.g. message.content() instead of message.getContent().
        Specified by:
        content in interface Message
      • payload

        public <T> T payload()
        Description copied from interface: Message
        Returns the message payload. This method automatically consumes the payload stream if it is a stream.
        Specified by:
        payload in interface Message
      • getAttributes

        public MessageAttributes getAttributes()
        Description copied from interface: Message
        This method is needed by Script engine to access this object's properties.
        Specified by:
        getAttributes in interface Message
        Returns:
        the message attributes.
      • attributes

        public MessageAttributes attributes()
        Description copied from interface: Message
        This is a 'nice to have' method to make getting the attributes more readable from the Script language e.g. message.attributes() instead of message.getAttributes().
        Specified by:
        attributes in interface Message
        Returns:
        the message attributes.