public abstract class AMQPMessage extends RefCountMessage implements Message
Bare Message
|
.---------------------+--------------------.
| |
+--------+-------------+-------------+------------+--------------+--------------+--------+
| header | delivery- | message- | properties | application- | application- | footer |
| | annotations | annotations | | properties | data | |
+--------+-------------+-------------+------------+--------------+--------------+--------+
| |
'-------------------------------------------+--------------------------------------------'
|
Annotated Message
| Modifier and Type | Class and Description |
|---|---|
static class |
AMQPMessage.MessageDataScanningStatus
This has been made public just for testing purposes: it's not stable
and developers shouldn't rely on this for developing purposes.
|
| Modifier and Type | Field and Description |
|---|---|
protected SimpleString |
address |
static SimpleString |
ADDRESS_PROPERTY |
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties |
applicationProperties |
protected int |
applicationPropertiesPosition |
protected String |
connectionID |
protected CoreMessageObjectPools |
coreMessageObjectPools |
static int |
DEFAULT_MESSAGE_FORMAT |
static int |
DEFAULT_MESSAGE_PRIORITY |
protected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations |
deliveryAnnotations |
protected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations |
deliveryAnnotationsForSendBuffer |
protected int |
deliveryAnnotationsPosition |
protected int |
encodedDeliveryAnnotationsSize |
protected int |
encodedHeaderSize |
protected long |
expiration |
protected boolean |
expirationReload |
protected TypedProperties |
extraProperties |
protected org.apache.qpid.proton.amqp.messaging.Header |
header |
protected int |
headerPosition |
protected static org.jboss.logging.Logger |
logger |
static int |
MAX_MESSAGE_PRIORITY |
protected int |
memoryEstimate |
protected org.apache.qpid.proton.amqp.messaging.MessageAnnotations |
messageAnnotations |
protected int |
messageAnnotationsPosition |
protected byte |
messageDataScanned |
protected long |
messageFormat |
protected long |
messageID |
protected boolean |
modified |
protected org.apache.qpid.proton.amqp.messaging.Properties |
properties |
protected int |
propertiesPosition |
protected Set<Object> |
rejectedConsumers |
protected int |
remainingBodyPosition |
protected long |
scheduledTime |
protected static int |
VALUE_NOT_PRESENT |
BYTES_TYPE, DEFAULT_TYPE, EMBEDDED_TYPE, HDR_ACTUAL_EXPIRY_TIME, HDR_BRIDGE_DUPLICATE_ID, HDR_CONTENT_TYPE, HDR_DUPLICATE_DETECTION_ID, HDR_GROUP_ID, HDR_GROUP_SEQUENCE, HDR_INGRESS_TIMESTAMP, HDR_LARGE_BODY_SIZE, HDR_LARGE_COMPRESSED, HDR_LAST_VALUE_NAME, HDR_ORIG_MESSAGE_ID, HDR_ORIG_ROUTING_TYPE, HDR_ORIGINAL_ADDRESS, HDR_ORIGINAL_QUEUE, HDR_PREFIX, HDR_ROUTE_TO_ACK_IDS, HDR_ROUTE_TO_IDS, HDR_ROUTING_TYPE, HDR_SCALEDOWN_TO_IDS, HDR_SCHEDULED_DELIVERY_TIME, HDR_VALIDATED_USER, INTERNAL_PROPERTY_NAMES_PREDICATE, LARGE_EMBEDDED_TYPE, MAP_TYPE, memoryOffset, OBJECT_TYPE, STREAM_TYPE, TEXT_TYPE| Modifier | Constructor and Description |
|---|---|
protected |
AMQPMessage(AMQPMessage copy) |
protected |
AMQPMessage(long messageFormat) |
|
AMQPMessage(long messageFormat,
TypedProperties extraProperties,
CoreMessageObjectPools coreMessageObjectPools)
Creates a new
AMQPMessage instance from binary encoded message data. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsConsumer(long consumer) |
protected SimpleString |
cachedAddressSimpleString(String address) |
void |
clearInternalProperties() |
boolean |
containsProperty(SimpleString key) |
boolean |
containsProperty(String key) |
abstract Message |
copy() |
protected org.apache.qpid.proton.codec.ReadableBuffer |
createDeliveryCopy(int deliveryCount,
org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)
it will create a copy with the relevant delivery annotation and its copy
|
TypedProperties |
createExtraProperties() |
protected abstract void |
encodeMessage() |
protected abstract void |
ensureDataIsValid() |
protected void |
ensureMessageDataScanned() |
protected void |
ensureScanning() |
String |
getAddress() |
SimpleString |
getAddressSimpleString() |
Object |
getAMQPUserID()
Before we added AMQP into Artemis the name getUserID was already taken by JMSMessageID.
|
Object |
getAnnotation(SimpleString key) |
org.apache.qpid.proton.amqp.messaging.ApplicationProperties |
getApplicationProperties()
Returns a copy of the
ApplicationProperties present in the message if present or null. |
protected Map<String,Object> |
getApplicationPropertiesMap(boolean createIfAbsent) |
org.apache.qpid.proton.amqp.messaging.Section |
getBody()
Retrieves the AMQP Section that composes the body of this message by decoding a
fresh copy from the encoded message data.
|
Boolean |
getBooleanProperty(SimpleString key) |
Boolean |
getBooleanProperty(String key) |
Object |
getBrokerProperty(SimpleString key) |
Byte |
getByteProperty(SimpleString key) |
Byte |
getByteProperty(String key) |
byte[] |
getBytesProperty(SimpleString key) |
byte[] |
getBytesProperty(String key) |
String |
getConnectionID() |
Object |
getCorrelationID() |
protected abstract org.apache.qpid.proton.codec.ReadableBuffer |
getData() |
AMQPMessage.MessageDataScanningStatus |
getDataScanningStatus() |
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties |
getDecodedApplicationProperties()
This will return application properties without attempting to decode it.
|
protected org.apache.qpid.proton.amqp.messaging.MessageAnnotations |
getDecodedMessageAnnotations() |
org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations |
getDeliveryAnnotations()
Returns a copy of the MessageAnnotations in the message if present or null.
|
protected int |
getDeliveryAnnotationsForSendBufferSize() |
Double |
getDoubleProperty(SimpleString key) |
Double |
getDoubleProperty(String key) |
Object |
getDuplicateProperty() |
abstract int |
getEncodeSize() |
protected int |
getEstimateSavedEncode() |
long |
getExpiration() |
byte[] |
getExtraBytesProperty(SimpleString key) |
TypedProperties |
getExtraProperties() |
Float |
getFloatProperty(SimpleString key) |
Float |
getFloatProperty(String key) |
org.apache.qpid.proton.amqp.messaging.Footer |
getFooter()
Retrieves the AMQP Footer encoded in the data of this message by decoding a
fresh copy from the encoded message data.
|
SimpleString |
getGroupID() |
int |
getGroupSequence() |
org.apache.qpid.proton.amqp.messaging.Header |
getHeader()
Returns a copy of the message Header if one is present, changes to the returned
Header instance do not affect the original Message.
|
Long |
getIngressTimestamp() |
Integer |
getIntProperty(SimpleString key) |
Integer |
getIntProperty(String key) |
SimpleString |
getLastValueProperty() |
Long |
getLongProperty(SimpleString key) |
Long |
getLongProperty(String key) |
abstract int |
getMemoryEstimate() |
protected Object |
getMessageAnnotation(String annotation) |
protected Object |
getMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation) |
org.apache.qpid.proton.amqp.messaging.MessageAnnotations |
getMessageAnnotations()
Returns a copy of the DeliveryAnnotations in the message if present or null.
|
protected Map<org.apache.qpid.proton.amqp.Symbol,Object> |
getMessageAnnotationsMap(boolean createIfAbsent) |
long |
getMessageFormat() |
long |
getMessageID() |
Object |
getObjectProperty(SimpleString key) |
Object |
getObjectProperty(String key) |
Object |
getObjectPropertyForFilter(SimpleString key) |
Object |
getOwner() |
abstract long |
getPersistentSize() |
abstract Persister<Message> |
getPersister() |
abstract int |
getPersistSize() |
byte |
getPriority() |
org.apache.qpid.proton.amqp.messaging.Properties |
getProperties()
Returns a copy of the message Properties if one is present, changes to the returned
Properties instance do not affect the original Message.
|
protected SimpleString.StringSimpleStringPool |
getPropertyKeysPool() |
Set<SimpleString> |
getPropertyNames() |
protected SimpleString.StringSimpleStringPool |
getPropertyValuesPool() |
org.apache.qpid.proton.message.impl.MessageImpl |
getProtonMessage()
Creates and returns a Proton-J MessageImpl wrapper around the message data.
|
SimpleString |
getReplyTo() |
RoutingType |
getRoutingType() |
Long |
getScheduledDeliveryTime() |
org.apache.qpid.proton.codec.ReadableBuffer |
getSendBuffer(int deliveryCount,
MessageReference reference)
Gets a ByteBuf from the Message that contains the encoded bytes to be sent on the wire.
|
Short |
getShortProperty(SimpleString key) |
Short |
getShortProperty(String key) |
SimpleString |
getSimpleStringProperty(SimpleString key) |
SimpleString |
getSimpleStringProperty(String key) |
String |
getStringProperty(SimpleString key) |
String |
getStringProperty(String key) |
long |
getTimestamp() |
Object |
getUserID() |
boolean |
hasScheduledDeliveryTime() |
protected int |
internalPersistSize() |
boolean |
isDurable() |
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties |
lazyDecodeApplicationProperties() |
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties |
lazyDecodeApplicationProperties(org.apache.qpid.proton.codec.ReadableBuffer data) |
protected void |
lazyScanAfterReloadPersistence() |
void |
messageChanged() |
abstract void |
persist(ActiveMQBuffer targetRecord) |
Message |
putBooleanProperty(SimpleString key,
boolean value) |
Message |
putBooleanProperty(String key,
boolean value) |
Message |
putByteProperty(SimpleString key,
byte value) |
Message |
putByteProperty(String key,
byte value) |
Message |
putBytesProperty(SimpleString key,
byte[] value) |
Message |
putBytesProperty(String key,
byte[] value) |
Message |
putCharProperty(SimpleString key,
char value) |
Message |
putCharProperty(String key,
char value) |
Message |
putDoubleProperty(SimpleString key,
double value) |
Message |
putDoubleProperty(String key,
double value) |
Message |
putExtraBytesProperty(SimpleString key,
byte[] value) |
Message |
putFloatProperty(SimpleString key,
float value) |
Message |
putFloatProperty(String key,
float value) |
Message |
putIntProperty(SimpleString key,
int value) |
Message |
putIntProperty(String key,
int value) |
Message |
putLongProperty(SimpleString key,
long value) |
Message |
putLongProperty(String key,
long value) |
Message |
putObjectProperty(SimpleString key,
Object value) |
Message |
putObjectProperty(String key,
Object value) |
Message |
putShortProperty(SimpleString key,
short value) |
Message |
putShortProperty(String key,
short value) |
Message |
putStringProperty(SimpleString key,
SimpleString value) |
Message |
putStringProperty(SimpleString key,
String value) |
Message |
putStringProperty(String key,
String value) |
void |
receiveBuffer(io.netty.buffer.ByteBuf buffer) |
abstract void |
reencode() |
void |
rejectConsumer(long consumer) |
void |
reloadExpiration(long expiration) |
abstract void |
reloadPersistence(ActiveMQBuffer record,
CoreMessageObjectPools pools) |
Object |
removeAnnotation(SimpleString key) |
byte[] |
removeExtraBytesProperty(SimpleString key) |
protected Object |
removeMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation) |
Object |
removeProperty(SimpleString key) |
Object |
removeProperty(String key) |
protected void |
resetMessageData() |
protected <T> T |
scanForMessageSection(int scanStartPosition,
Class... targetTypes) |
protected <T> T |
scanForMessageSection(org.apache.qpid.proton.codec.ReadableBuffer buffer,
int scanStartPosition,
Class... targetTypes) |
protected void |
scanMessageData() |
protected void |
scanMessageData(org.apache.qpid.proton.codec.ReadableBuffer data) |
void |
sendBuffer(io.netty.buffer.ByteBuf buffer,
int deliveryCount)
Would be called by the Artemis Core components to encode the message into
the provided send buffer.
|
AMQPMessage |
setAddress(SimpleString address) |
AMQPMessage |
setAddress(String address) |
AMQPMessage |
setAnnotation(SimpleString key,
Object value) |
Message |
setBrokerProperty(SimpleString key,
Object value) |
Message |
setConnectionID(String connectionID) |
Message |
setCorrelationID(Object correlationID) |
void |
setDeliveryAnnotationsForSendBuffer(org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)
Deprecated.
use MessageReference.setProtocolData(deliveryAnnotations)
|
Message |
setDurable(boolean durable) |
AMQPMessage |
setExpiration(long expiration) |
AMQPMessage |
setExtraProperties(TypedProperties extraProperties) |
Message |
setIngressTimestamp() |
Message |
setLastValueProperty(SimpleString lastValueName) |
protected void |
setMessageAnnotation(String annotation,
Object value) |
protected void |
setMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation,
Object value) |
protected void |
setMessageAnnotations(org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations) |
Message |
setMessageID(long id) |
void |
setOwner(Object object) |
Message |
setPriority(byte priority) |
AMQPMessage |
setReplyTo(SimpleString address) |
Message |
setRoutingType(RoutingType routingType) |
AMQPMessage |
setScheduledDeliveryTime(Long time) |
Message |
setTimestamp(long timestamp) |
Message |
setUserID(Object userID) |
ICoreMessage |
toCore() |
ICoreMessage |
toCore(CoreMessageObjectPools coreMessageObjectPools) |
String |
toDebugString()
This is different from toString, as this will print an expanded version of the buffer
in Hex and programmers's readable format
|
Map<String,Object> |
toPropertyMap(int valueSizeLimit) |
String |
toString() |
protected int |
unmarshalledApplicationPropertiesMemoryEstimateFromData(org.apache.qpid.proton.codec.ReadableBuffer data) |
protected void |
writeDeliveryAnnotationsForSendBuffer(io.netty.buffer.ByteBuf result,
org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations) |
debugRefs, debugString, durableDown, durableUp, getDurableCount, getParentRef, getRefCount, getUsage, refDown, refUp, releaseComplete, setParentRef, usageDown, usageUpclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, copy, durableDown, durableUp, getAnnotationString, getBodyBuffer, getBodyInputStream, getDuplicateIDBytes, getDurableCount, getRefCount, getStringBody, getType, getUsage, getValidatedUserID, getWholeMessageSize, isExpired, isLargeMessage, refDown, referenceOriginalMessage, refUp, setGroupID, setGroupID, setGroupSequence, setType, setValidatedUserID, toMap, toMap, toPropertyMap, usageDown, usageUpprotected static final org.jboss.logging.Logger logger
public static final SimpleString ADDRESS_PROPERTY
public static final int DEFAULT_MESSAGE_FORMAT
public static final int DEFAULT_MESSAGE_PRIORITY
public static final int MAX_MESSAGE_PRIORITY
protected static final int VALUE_NOT_PRESENT
protected byte messageDataScanned
protected boolean modified
protected int headerPosition
protected int encodedHeaderSize
protected int deliveryAnnotationsPosition
protected int encodedDeliveryAnnotationsSize
protected int messageAnnotationsPosition
protected int propertiesPosition
protected int applicationPropertiesPosition
protected int remainingBodyPosition
protected final long messageFormat
protected long messageID
protected SimpleString address
protected volatile int memoryEstimate
protected long expiration
protected boolean expirationReload
protected long scheduledTime
protected org.apache.qpid.proton.amqp.messaging.Header header
protected org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations
protected org.apache.qpid.proton.amqp.messaging.Properties properties
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties applicationProperties
protected String connectionID
protected final CoreMessageObjectPools coreMessageObjectPools
protected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotationsForSendBuffer
protected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations
protected volatile TypedProperties extraProperties
public AMQPMessage(long messageFormat,
TypedProperties extraProperties,
CoreMessageObjectPools coreMessageObjectPools)
AMQPMessage instance from binary encoded message data.messageFormat - The Message format tag given the in Transfer that carried this messageextraProperties - Broker specific extra properties that should be carried with this messageprotected AMQPMessage(AMQPMessage copy)
protected AMQPMessage(long messageFormat)
public final AMQPMessage.MessageDataScanningStatus getDataScanningStatus()
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties getDecodedApplicationProperties()
protected org.apache.qpid.proton.amqp.messaging.MessageAnnotations getDecodedMessageAnnotations()
protected abstract org.apache.qpid.proton.codec.ReadableBuffer getData()
public final org.apache.qpid.proton.message.impl.MessageImpl getProtonMessage()
AMQPMessagepublic Object getObjectPropertyForFilter(SimpleString key)
getObjectPropertyForFilter in interface Messagepublic final org.apache.qpid.proton.amqp.messaging.Header getHeader()
protected void ensureScanning()
public final org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations getDeliveryAnnotations()
DeliveryAnnotations present in the message or null if non present.@Deprecated public final void setDeliveryAnnotationsForSendBuffer(org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)
deliveryAnnotations - delivery annotations used in the sendBuffer() methodpublic final org.apache.qpid.proton.amqp.messaging.MessageAnnotations getMessageAnnotations()
MessageAnnotations present in the message or null if non present.public final org.apache.qpid.proton.amqp.messaging.Properties getProperties()
public final org.apache.qpid.proton.amqp.messaging.ApplicationProperties getApplicationProperties()
ApplicationProperties present in the message if present or null.
Changes to the returned MessageAnnotations instance do not affect the original Message.ApplicationProperties present in the message or null if non present.public final String toDebugString()
public final org.apache.qpid.proton.amqp.messaging.Section getBody()
public final org.apache.qpid.proton.amqp.messaging.Footer getFooter()
protected <T> T scanForMessageSection(int scanStartPosition,
Class... targetTypes)
protected <T> T scanForMessageSection(org.apache.qpid.proton.codec.ReadableBuffer buffer,
int scanStartPosition,
Class... targetTypes)
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties lazyDecodeApplicationProperties()
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties lazyDecodeApplicationProperties(org.apache.qpid.proton.codec.ReadableBuffer data)
protected int unmarshalledApplicationPropertiesMemoryEstimateFromData(org.apache.qpid.proton.codec.ReadableBuffer data)
protected Map<String,Object> getApplicationPropertiesMap(boolean createIfAbsent)
protected Map<org.apache.qpid.proton.amqp.Symbol,Object> getMessageAnnotationsMap(boolean createIfAbsent)
protected Object getMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation)
protected Object removeMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation)
protected void setMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation,
Object value)
protected void setMessageAnnotations(org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations)
protected void ensureMessageDataScanned()
protected int getEstimateSavedEncode()
protected void resetMessageData()
protected void scanMessageData()
protected void scanMessageData(org.apache.qpid.proton.codec.ReadableBuffer data)
public final void sendBuffer(io.netty.buffer.ByteBuf buffer,
int deliveryCount)
sendBuffer in interface Messagefor the actual method used for message sends.public org.apache.qpid.proton.codec.ReadableBuffer getSendBuffer(int deliveryCount,
MessageReference reference)
When possible this method will present the bytes to the caller without copying them into a new buffer copy. If copying is needed a new Netty buffer is created and returned. The caller should ensure that the reference count on the returned buffer is always decremented to avoid a leak in the case of a copied buffer being returned.
deliveryCount - The new delivery count for this message.protected org.apache.qpid.proton.codec.ReadableBuffer createDeliveryCopy(int deliveryCount,
org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)
protected void writeDeliveryAnnotationsForSendBuffer(io.netty.buffer.ByteBuf result,
org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)
protected int getDeliveryAnnotationsForSendBufferSize()
public void messageChanged()
messageChanged in interface Messagepublic abstract int getEncodeSize()
getEncodeSize in interface Messagepublic final void receiveBuffer(io.netty.buffer.ByteBuf buffer)
receiveBuffer in interface Messagepublic abstract int getMemoryEstimate()
getMemoryEstimate in interface Messagepublic Map<String,Object> toPropertyMap(int valueSizeLimit)
toPropertyMap in interface Messagepublic ICoreMessage toCore(CoreMessageObjectPools coreMessageObjectPools)
public ICoreMessage toCore()
public abstract void persist(ActiveMQBuffer targetRecord)
public abstract int getPersistSize()
getPersistSize in interface Messageprotected int internalPersistSize()
public abstract void reloadPersistence(ActiveMQBuffer record, CoreMessageObjectPools pools)
reloadPersistence in interface Messageprotected void lazyScanAfterReloadPersistence()
public abstract long getPersistentSize()
throws ActiveMQException
getPersistentSize in interface MessageActiveMQExceptionpublic abstract Persister<Message> getPersister()
getPersister in interface Messageprotected abstract void ensureDataIsValid()
protected abstract void encodeMessage()
public final TypedProperties createExtraProperties()
public final TypedProperties getExtraProperties()
public final AMQPMessage setExtraProperties(TypedProperties extraProperties)
public final Message putExtraBytesProperty(SimpleString key, byte[] value)
putExtraBytesProperty in interface Messagepublic final byte[] getExtraBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException
getExtraBytesProperty in interface MessageActiveMQPropertyConversionExceptionpublic void clearInternalProperties()
clearInternalProperties in interface Messagepublic final byte[] removeExtraBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException
removeExtraBytesProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Message setConnectionID(String connectionID)
setConnectionID in interface Messagepublic final String getConnectionID()
getConnectionID in interface Messagepublic final long getMessageFormat()
public final long getMessageID()
getMessageID in interface Messagepublic final Message setMessageID(long id)
setMessageID in interface Messagepublic final long getExpiration()
getExpiration in interface Messagepublic void reloadExpiration(long expiration)
public final AMQPMessage setExpiration(long expiration)
setExpiration in interface Messagepublic final Object getAMQPUserID()
public final Object getDuplicateProperty()
getDuplicateProperty in interface Messagepublic final Message setDurable(boolean durable)
setDurable in interface Messagepublic final String getAddress()
getAddress in interface Messagepublic final AMQPMessage setAddress(String address)
setAddress in interface Messagepublic final AMQPMessage setAddress(SimpleString address)
setAddress in interface Messagepublic final SimpleString getAddressSimpleString()
getAddressSimpleString in interface Messageprotected SimpleString cachedAddressSimpleString(String address)
public final long getTimestamp()
getTimestamp in interface Messagepublic final Message setTimestamp(long timestamp)
setTimestamp in interface Messagepublic final byte getPriority()
getPriority in interface Messagepublic final Message setPriority(byte priority)
setPriority in interface Messagepublic final SimpleString getReplyTo()
getReplyTo in interface Messagepublic final AMQPMessage setReplyTo(SimpleString address)
setReplyTo in interface Messagepublic final RoutingType getRoutingType()
getRoutingType in interface Messagepublic final Message setRoutingType(RoutingType routingType)
setRoutingType in interface Messagepublic final SimpleString getGroupID()
getGroupID in interface Messagepublic final int getGroupSequence()
getGroupSequence in interface Messagepublic final Object getCorrelationID()
getCorrelationID in interface Messagepublic final Message setCorrelationID(Object correlationID)
setCorrelationID in interface Messagepublic boolean hasScheduledDeliveryTime()
hasScheduledDeliveryTime in interface Messagepublic final Long getScheduledDeliveryTime()
getScheduledDeliveryTime in interface Messagepublic final AMQPMessage setScheduledDeliveryTime(Long time)
setScheduledDeliveryTime in interface Messagepublic final Object removeAnnotation(SimpleString key)
removeAnnotation in interface Messagepublic final Object getAnnotation(SimpleString key)
getAnnotation in interface Messagepublic final AMQPMessage setAnnotation(SimpleString key, Object value)
setAnnotation in interface Messagepublic Message setBrokerProperty(SimpleString key, Object value)
setBrokerProperty in interface Messagepublic Object getBrokerProperty(SimpleString key)
getBrokerProperty in interface Messagepublic final Message setIngressTimestamp()
setIngressTimestamp in interface Messagepublic Long getIngressTimestamp()
getIngressTimestamp in interface Messagepublic final Object removeProperty(SimpleString key)
removeProperty in interface Messagepublic final Object removeProperty(String key)
removeProperty in interface Messagepublic final boolean containsProperty(SimpleString key)
containsProperty in interface Messagepublic final boolean containsProperty(String key)
containsProperty in interface Messagepublic final Boolean getBooleanProperty(String key) throws ActiveMQPropertyConversionException
getBooleanProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Byte getByteProperty(String key) throws ActiveMQPropertyConversionException
getByteProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Double getDoubleProperty(String key) throws ActiveMQPropertyConversionException
getDoubleProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Integer getIntProperty(String key) throws ActiveMQPropertyConversionException
getIntProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Long getLongProperty(String key) throws ActiveMQPropertyConversionException
getLongProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Object getObjectProperty(String key)
getObjectProperty in interface Messagepublic final Short getShortProperty(String key) throws ActiveMQPropertyConversionException
getShortProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Float getFloatProperty(String key) throws ActiveMQPropertyConversionException
getFloatProperty in interface MessageActiveMQPropertyConversionExceptionpublic final String getStringProperty(String key) throws ActiveMQPropertyConversionException
getStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Set<SimpleString> getPropertyNames()
getPropertyNames in interface Messagepublic final Boolean getBooleanProperty(SimpleString key) throws ActiveMQPropertyConversionException
getBooleanProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Byte getByteProperty(SimpleString key) throws ActiveMQPropertyConversionException
getByteProperty in interface MessageActiveMQPropertyConversionExceptionpublic final byte[] getBytesProperty(String key) throws ActiveMQPropertyConversionException
getBytesProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Double getDoubleProperty(SimpleString key) throws ActiveMQPropertyConversionException
getDoubleProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Integer getIntProperty(SimpleString key) throws ActiveMQPropertyConversionException
getIntProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Long getLongProperty(SimpleString key) throws ActiveMQPropertyConversionException
getLongProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Object getObjectProperty(SimpleString key)
getObjectProperty in interface Messagepublic final Short getShortProperty(SimpleString key) throws ActiveMQPropertyConversionException
getShortProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Float getFloatProperty(SimpleString key) throws ActiveMQPropertyConversionException
getFloatProperty in interface MessageActiveMQPropertyConversionExceptionpublic final String getStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
getStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic final SimpleString getSimpleStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
getSimpleStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic final byte[] getBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException
getBytesProperty in interface MessageActiveMQPropertyConversionExceptionpublic final SimpleString getSimpleStringProperty(String key) throws ActiveMQPropertyConversionException
getSimpleStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Message putBooleanProperty(String key, boolean value)
putBooleanProperty in interface Messagepublic final Message putByteProperty(String key, byte value)
putByteProperty in interface Messagepublic final Message putBytesProperty(String key, byte[] value)
putBytesProperty in interface Messagepublic final Message putShortProperty(String key, short value)
putShortProperty in interface Messagepublic final Message putCharProperty(String key, char value)
putCharProperty in interface Messagepublic final Message putIntProperty(String key, int value)
putIntProperty in interface Messagepublic final Message putLongProperty(String key, long value)
putLongProperty in interface Messagepublic final Message putFloatProperty(String key, float value)
putFloatProperty in interface Messagepublic final Message putDoubleProperty(String key, double value)
putDoubleProperty in interface Messagepublic final Message putBooleanProperty(SimpleString key, boolean value)
putBooleanProperty in interface Messagepublic final Message putByteProperty(SimpleString key, byte value)
putByteProperty in interface Messagepublic final Message putBytesProperty(SimpleString key, byte[] value)
putBytesProperty in interface Messagepublic final Message putShortProperty(SimpleString key, short value)
putShortProperty in interface Messagepublic final Message putCharProperty(SimpleString key, char value)
putCharProperty in interface Messagepublic final Message putIntProperty(SimpleString key, int value)
putIntProperty in interface Messagepublic final Message putLongProperty(SimpleString key, long value)
putLongProperty in interface Messagepublic final Message putFloatProperty(SimpleString key, float value)
putFloatProperty in interface Messagepublic final Message putDoubleProperty(SimpleString key, double value)
putDoubleProperty in interface Messagepublic final Message putStringProperty(String key, String value)
putStringProperty in interface Messagepublic final Message putObjectProperty(String key, Object value) throws ActiveMQPropertyConversionException
putObjectProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Message putObjectProperty(SimpleString key, Object value) throws ActiveMQPropertyConversionException
putObjectProperty in interface MessageActiveMQPropertyConversionExceptionpublic final Message putStringProperty(SimpleString key, SimpleString value)
putStringProperty in interface Messagepublic final Message putStringProperty(SimpleString key, String value)
putStringProperty in interface Messagepublic final SimpleString getLastValueProperty()
getLastValueProperty in interface Messagepublic final Message setLastValueProperty(SimpleString lastValueName)
setLastValueProperty in interface Messagepublic final boolean acceptsConsumer(long consumer)
acceptsConsumer in interface Messagepublic final void rejectConsumer(long consumer)
rejectConsumer in interface Messageprotected SimpleString.StringSimpleStringPool getPropertyKeysPool()
protected SimpleString.StringSimpleStringPool getPropertyValuesPool()
Copyright © 2021 The Apache Software Foundation. All rights reserved.