public class AmqpMessage extends Object
| Constructor and Description |
|---|
AmqpMessage() |
AmqpMessage(org.apache.qpid.proton.message.impl.MessageImpl messageImpl)
Consule a MessageImpl object
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] data,
int offset,
int length)
Sets the data value
|
int |
encode(byte[] data,
int offset) |
byte[] |
getAmqpBody()
Returns the amqp body used in the message
|
void |
setApplicationProperty(Map<String,Object> userProperties)
Set the application property for the message
|
void |
setBody(byte[] msgData) |
void |
setBody(org.apache.qpid.proton.amqp.messaging.Data msgData)
set the Body of the AMQP message
|
public AmqpMessage()
public AmqpMessage(org.apache.qpid.proton.message.impl.MessageImpl messageImpl)
messageImpl - the ProtonJ Impl message.public void setBody(org.apache.qpid.proton.amqp.messaging.Data msgData)
msgData - the AMQP message body.public void setBody(byte[] msgData)
public byte[] getAmqpBody()
public void setApplicationProperty(Map<String,Object> userProperties)
userProperties - The user prototype.public void decode(byte[] data,
int offset,
int length)
data - the byte[] to be decodedoffset - the offset in the byte[]length - the total lengthpublic int encode(byte[] data,
int offset)
throws IOException
IOExceptionCopyright © 2019. All rights reserved.