public class MessageImpl extends java.lang.Object implements ProtonJMessage
DEFAULT_PRIORITY| Constructor and Description |
|---|
MessageImpl()
Deprecated.
This constructor's visibility will be reduced to the default scope in a future release.
Client code outside this module should use a
MessageFactory instead |
MessageImpl(Header header,
DeliveryAnnotations deliveryAnnotations,
MessageAnnotations messageAnnotations,
Properties properties,
ApplicationProperties applicationProperties,
Section body,
Footer footer)
Deprecated.
This constructor's visibility will be reduced to the default scope in a future release.
Client code outside this module should use a
MessageFactory instead |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
decode(byte[] data,
int offset,
int length) |
int |
encode(byte[] data,
int offset,
int length) |
int |
encode(WritableBuffer buffer) |
int |
encode2(byte[] data,
int offset,
int length) |
java.lang.String |
getAddress() |
ApplicationProperties |
getApplicationProperties() |
Section |
getBody() |
java.lang.String |
getContentEncoding() |
java.lang.String |
getContentType() |
java.lang.Object |
getCorrelationId() |
long |
getCreationTime() |
DeliveryAnnotations |
getDeliveryAnnotations() |
long |
getDeliveryCount() |
MessageError |
getError() |
long |
getExpiryTime() |
Footer |
getFooter() |
java.lang.String |
getGroupId() |
long |
getGroupSequence() |
Header |
getHeader() |
MessageAnnotations |
getMessageAnnotations() |
MessageFormat |
getMessageFormat() |
java.lang.Object |
getMessageId() |
short |
getPriority() |
Properties |
getProperties() |
java.lang.String |
getReplyTo() |
java.lang.String |
getReplyToGroupId() |
java.lang.String |
getSubject() |
long |
getTtl() |
byte[] |
getUserId() |
boolean |
isDurable() |
boolean |
isFirstAcquirer() |
void |
load(java.lang.Object data) |
java.lang.Object |
parseAMQPFormat(java.lang.String value) |
java.lang.Object |
save() |
void |
setAddress(java.lang.String to) |
void |
setApplicationProperties(ApplicationProperties applicationProperties) |
void |
setBody(Section body) |
void |
setContentEncoding(java.lang.String contentEncoding) |
void |
setContentType(java.lang.String contentType) |
void |
setCorrelationId(java.lang.Object correlationId) |
void |
setCreationTime(long creationTime) |
void |
setDeliveryAnnotations(DeliveryAnnotations deliveryAnnotations) |
void |
setDeliveryCount(long deliveryCount) |
void |
setDurable(boolean durable) |
void |
setExpiryTime(long absoluteExpiryTime) |
void |
setFirstAcquirer(boolean firstAcquirer) |
void |
setFooter(Footer footer) |
void |
setGroupId(java.lang.String groupId) |
void |
setGroupSequence(long groupSequence) |
void |
setHeader(Header header) |
void |
setMessageAnnotations(MessageAnnotations messageAnnotations) |
void |
setMessageFormat(MessageFormat format) |
void |
setMessageId(java.lang.Object messageId) |
void |
setPriority(short priority) |
void |
setProperties(Properties properties) |
void |
setReplyTo(java.lang.String replyTo) |
void |
setReplyToGroupId(java.lang.String replyToGroupId) |
void |
setSubject(java.lang.String subject) |
void |
setTtl(long ttl) |
void |
setUserId(byte[] userId) |
java.lang.String |
toAMQPFormat(java.lang.Object value) |
@Deprecated public MessageImpl()
MessageFactory instead@Deprecated public MessageImpl(Header header, DeliveryAnnotations deliveryAnnotations, MessageAnnotations messageAnnotations, Properties properties, ApplicationProperties applicationProperties, Section body, Footer footer)
MessageFactory insteadpublic long getDeliveryCount()
getDeliveryCount in interface Messagepublic short getPriority()
getPriority in interface Messagepublic boolean isFirstAcquirer()
isFirstAcquirer in interface Messagepublic void setDurable(boolean durable)
setDurable in interface Messagepublic void setDeliveryCount(long deliveryCount)
setDeliveryCount in interface Messagepublic void setFirstAcquirer(boolean firstAcquirer)
setFirstAcquirer in interface Messagepublic void setPriority(short priority)
setPriority in interface Messagepublic java.lang.Object getMessageId()
getMessageId in interface Messagepublic long getGroupSequence()
getGroupSequence in interface Messagepublic java.lang.String getReplyToGroupId()
getReplyToGroupId in interface Messagepublic long getCreationTime()
getCreationTime in interface Messagepublic java.lang.String getAddress()
getAddress in interface Messagepublic java.lang.String getReplyTo()
getReplyTo in interface Messagepublic java.lang.String getGroupId()
getGroupId in interface Messagepublic java.lang.String getContentType()
getContentType in interface Messagepublic long getExpiryTime()
getExpiryTime in interface Messagepublic java.lang.Object getCorrelationId()
getCorrelationId in interface Messagepublic java.lang.String getContentEncoding()
getContentEncoding in interface Messagepublic java.lang.String getSubject()
getSubject in interface Messagepublic void setGroupSequence(long groupSequence)
setGroupSequence in interface Messagepublic void setCreationTime(long creationTime)
setCreationTime in interface Messagepublic void setSubject(java.lang.String subject)
setSubject in interface Messagepublic void setGroupId(java.lang.String groupId)
setGroupId in interface Messagepublic void setAddress(java.lang.String to)
setAddress in interface Messagepublic void setExpiryTime(long absoluteExpiryTime)
setExpiryTime in interface Messagepublic void setReplyToGroupId(java.lang.String replyToGroupId)
setReplyToGroupId in interface Messagepublic void setContentEncoding(java.lang.String contentEncoding)
setContentEncoding in interface Messagepublic void setContentType(java.lang.String contentType)
setContentType in interface Messagepublic void setReplyTo(java.lang.String replyTo)
setReplyTo in interface Messagepublic void setCorrelationId(java.lang.Object correlationId)
setCorrelationId in interface Messagepublic void setMessageId(java.lang.Object messageId)
setMessageId in interface Messagepublic DeliveryAnnotations getDeliveryAnnotations()
getDeliveryAnnotations in interface Messagepublic MessageAnnotations getMessageAnnotations()
getMessageAnnotations in interface Messagepublic Properties getProperties()
getProperties in interface Messagepublic ApplicationProperties getApplicationProperties()
getApplicationProperties in interface Messagepublic void setDeliveryAnnotations(DeliveryAnnotations deliveryAnnotations)
setDeliveryAnnotations in interface Messagepublic void setMessageAnnotations(MessageAnnotations messageAnnotations)
setMessageAnnotations in interface Messagepublic void setProperties(Properties properties)
setProperties in interface Messagepublic void setApplicationProperties(ApplicationProperties applicationProperties)
setApplicationProperties in interface Messagepublic int decode(byte[] data,
int offset,
int length)
public int encode(byte[] data,
int offset,
int length)
public int encode2(byte[] data,
int offset,
int length)
encode2 in interface ProtonJMessagepublic int encode(WritableBuffer buffer)
encode in interface ProtonJMessagepublic java.lang.String toAMQPFormat(java.lang.Object value)
toAMQPFormat in interface Messagepublic java.lang.Object parseAMQPFormat(java.lang.String value)
parseAMQPFormat in interface Messagepublic void setMessageFormat(MessageFormat format)
setMessageFormat in interface Messagepublic MessageFormat getMessageFormat()
getMessageFormat in interface Messagepublic MessageError getError()
Copyright © 2014 FuseSource, Corp.. All Rights Reserved.