public interface ProtonJMessage extends Message
Message.FactoryDEFAULT_PRIORITY| Modifier and Type | Method and Description |
|---|---|
int |
encode(WritableBuffer buffer)
Encodes the current Message contents into the given
WritableBuffer instance. |
int |
encode2(byte[] data,
int offset,
int length) |
clear, decode, decode, encode, getAddress, getApplicationProperties, getBody, getContentEncoding, getContentType, getCorrelationId, getCreationTime, getDeliveryAnnotations, getDeliveryCount, getError, getExpiryTime, getFooter, getGroupId, getGroupSequence, getHeader, getMessageAnnotations, getMessageId, getPriority, getProperties, getReplyTo, getReplyToGroupId, getSubject, getTtl, getUserId, isDurable, isFirstAcquirer, setAddress, setApplicationProperties, setBody, setContentEncoding, setContentType, setCorrelationId, setCreationTime, setDeliveryAnnotations, setDeliveryCount, setDurable, setExpiryTime, setFirstAcquirer, setFooter, setGroupId, setGroupSequence, setHeader, setMessageAnnotations, setMessageId, setPriority, setProperties, setReplyTo, setReplyToGroupId, setSubject, setTtl, setUserIdint encode2(byte[] data,
int offset,
int length)
int encode(WritableBuffer buffer)
MessageWritableBuffer instance.
This method attempts to encode all message data into the WritableBuffer and
if the buffer has insufficient space it will throw an exception to indicate the buffer
overflow condition. If successful the method returns the number of bytes written to
the provided buffer to fully encode the message.
encode in interface Messagebuffer - The WritableBuffer instance to encode the message contents into.