Class DefaultMessage

java.lang.Object
org.springframework.data.redis.connection.DefaultMessage
All Implemented Interfaces:
Serializable, Message

public class DefaultMessage extends Object implements Message
Default message implementation.
Author:
Costin Leau, Christoph Strobl, Mark Paluch
See Also:
  • Constructor Details

    • DefaultMessage

      public DefaultMessage(byte[] channel, byte[] body)
  • Method Details

    • getChannel

      public byte[] getChannel()
      Description copied from interface: Message
      Returns the channel associated with the message.
      Specified by:
      getChannel in interface Message
      Returns:
      message channel. Never null.
    • getBody

      public byte[] getBody()
      Description copied from interface: Message
      Returns the body (or the payload) of the message.
      Specified by:
      getBody in interface Message
      Returns:
      message body. Never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object