org.springframework.data.keyvalue.redis.connection
Class DefaultMessage
java.lang.Object
org.springframework.data.keyvalue.redis.connection.DefaultMessage
- All Implemented Interfaces:
- Serializable, Message
public class DefaultMessage
- extends Object
- implements Message
Default message implementation.
- Author:
- Costin Leau
- See Also:
- Serialized Form
Method Summary |
byte[] |
getBody()
Returns the body (or the payload) of the message. |
byte[] |
getChannel()
Returns the channel associated with the message. |
String |
toString()
|
DefaultMessage
public DefaultMessage(byte[] channel,
byte[] body)
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.
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010-2011 SpringSource. All Rights Reserved.