org.springframework.data.redis.connection
Class DefaultMessage

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

public class DefaultMessage
extends Object
implements Message

Default message implementation.

See Also:
Serialized Form

Constructor Summary
DefaultMessage(byte[] channel, byte[] body)
           
 
Method Summary
 byte[] getBody()
          Returns the body (or the payload) of the message.
 byte[] getChannel()
          Returns the channel associated with the message.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMessage

public DefaultMessage(byte[] channel,
                      byte[] body)
Method Detail

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