Class DefaultMessage
java.lang.Object
org.springframework.data.redis.connection.DefaultMessage
- All Implemented Interfaces:
Serializable
,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 interfaceMessage
- Returns:
- message channel. Never null.
-
getBody
public byte[] getBody()Description copied from interface:Message
Returns the body (or the payload) of the message. -
toString
-