public class MendelMessage
extends java.lang.Object
Constructor and Description |
---|
MendelMessage(byte[] payload)
Constructs a MendelMessage from an array of bytes.
|
MendelMessage(byte[] payload,
MessageContext context)
Constructs a MendelMessage from an array of bytes with an associated
MessageContext representing the source of the message. |
Modifier and Type | Method and Description |
---|---|
MessageContext |
getContext() |
byte[] |
getPayload()
Retrieves the payload for this MendelMessage.
|
public MendelMessage(byte[] payload)
payload
- message payload in the form of a byte array.public MendelMessage(byte[] payload, MessageContext context)
MessageContext
representing the source of the message.payload
- message payload in the form of a byte array.context
- context information for this messagepublic byte[] getPayload()
public MessageContext getContext()