public class DefaultMessage extends Object implements Message
| Constructor and Description |
|---|
DefaultMessage(byte[] channel,
byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody()
Returns the body (or the payload) of the message.
|
byte[] |
getChannel()
Returns the channel associated with the message.
|
String |
toString() |
public byte[] getChannel()
MessagegetChannel in interface Messagepublic byte[] getBody()
MessageCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.