Module lettuce.core

Class StreamMessage<K,​V>

java.lang.Object
io.lettuce.core.StreamMessage<K,​V>

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

    • 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 Details

    • 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.
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object