Class StreamMessage<K,​V>


  • public class StreamMessage<K,​V>
    extends Object
    A stream message and its id.
    Since:
    5.1
    Author:
    Mark Paluch
    • Constructor Detail

      • StreamMessage

        public StreamMessage​(K stream,
                             String id,
                             Map<K,​V> body)
        Create a new StreamMessage.
        Parameters:
        stream - the stream.
        id - the message id.
        body - map containing the message body.
    • Method Detail

      • getStream

        public K getStream()
      • getId

        public String getId()
      • getBody

        public Map<K,​V> getBody()
        Returns:
        the message body. Can be null for commands that do not return the message body.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object