|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Message
Represents a Message within Proton.
Create instances of Message using a MessageFactory implementation.
| Field Summary | |
|---|---|
static short |
DEFAULT_PRIORITY
|
| Field Detail |
|---|
static final short DEFAULT_PRIORITY
| Method Detail |
|---|
boolean isDurable()
long getDeliveryCount()
short getPriority()
boolean isFirstAcquirer()
long getTtl()
void setDurable(boolean durable)
void setTtl(long ttl)
void setDeliveryCount(long deliveryCount)
void setFirstAcquirer(boolean firstAcquirer)
void setPriority(short priority)
Object getMessageId()
long getGroupSequence()
String getReplyToGroupId()
long getCreationTime()
String getAddress()
byte[] getUserId()
String getReplyTo()
String getGroupId()
String getContentType()
long getExpiryTime()
Object getCorrelationId()
String getContentEncoding()
String getSubject()
void setGroupSequence(long groupSequence)
void setUserId(byte[] userId)
void setCreationTime(long creationTime)
void setSubject(String subject)
void setGroupId(String groupId)
void setAddress(String to)
void setExpiryTime(long absoluteExpiryTime)
void setReplyToGroupId(String replyToGroupId)
void setContentEncoding(String contentEncoding)
void setContentType(String contentType)
void setReplyTo(String replyTo)
void setCorrelationId(Object correlationId)
void setMessageId(Object messageId)
Header getHeader()
DeliveryAnnotations getDeliveryAnnotations()
MessageAnnotations getMessageAnnotations()
Properties getProperties()
ApplicationProperties getApplicationProperties()
Section getBody()
Footer getFooter()
void setHeader(Header header)
void setDeliveryAnnotations(DeliveryAnnotations deliveryAnnotations)
void setMessageAnnotations(MessageAnnotations messageAnnotations)
void setProperties(Properties properties)
void setApplicationProperties(ApplicationProperties applicationProperties)
void setBody(Section body)
void setFooter(Footer footer)
int decode(byte[] data,
int offset,
int length)
int encode(byte[] data,
int offset,
int length)
length bytes of the message into the provided byte array,
starting at position offset.
TODO describe what happens if length is smaller than the encoded form, Currently
Proton-J throws an exception. What does Proton-C do?
void load(Object data)
data.
TODO describe how the object is interpreted according to the MessageFormat.
setMessageFormat(MessageFormat)Object save()
getMessageFormat().
TODO describe the formatting process
String toAMQPFormat(Object value)
Object parseAMQPFormat(String value)
void setMessageFormat(MessageFormat format)
MessageFormat getMessageFormat()
void clear()
MessageError getError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||