Class AMQPMessage
java.lang.Object
org.apache.activemq.artemis.api.core.RefCountMessage
org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
AMQPLargeMessage, AMQPStandardMessage
See AMQP v1.0 message format
Bare Message
|
.---------------------+--------------------.
| |
+--------+-------------+-------------+------------+--------------+--------------+--------+
| header | delivery- | message- | properties | application- | application- | footer |
| | annotations | annotations | | properties | data | |
+--------+-------------+-------------+------------+--------------+--------------+--------+
| |
'-------------------------------------------+--------------------------------------------'
|
Annotated Message
- Zero or one header sections.
- Zero or one delivery-annotation sections.
- Zero or one message-annotation sections.
- Zero or one properties sections.
- Zero or one application-properties sections.
- The body consists of one of the following three choices:
- one or more data sections
- one or more amqp-sequence sections
- or a single amqp-value section.
- Zero or one footer sections.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis has been made public just for testing purposes: it's not stable and developers shouldn't rely on this for developing purposes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SimpleStringstatic final SimpleStringprotected org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesprotected intprotected Stringprotected final org.apache.activemq.artemis.core.persistence.CoreMessageObjectPoolsstatic final intstatic final intprotected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotationsprotected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotationsprotected intprotected intprotected intprotected longprotected booleanprotected org.apache.activemq.artemis.utils.collections.TypedPropertiesprotected org.apache.qpid.proton.amqp.messaging.Headerprotected intprotected booleanprotected static final org.slf4j.Loggerstatic final intprotected intprotected org.apache.qpid.proton.amqp.messaging.MessageAnnotationsprotected intprotected byteprotected final longprotected longprotected booleanprotected intprotected byteprotected org.apache.qpid.proton.amqp.messaging.Propertiesprotected intprotected intprotected booleanprotected longprotected static final intFields inherited from interface Message
AMQP_PROPERTY_PREDICATE, 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, PREFIX_AMQP_ANNOTATIONS, STREAM_TYPE, TEXT_TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAMQPMessage(long messageFormat) AMQPMessage(long messageFormat, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools) Creates a newAMQPMessageinstance from binary encoded message data.protectedAMQPMessage(AMQPMessage copy) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanacceptsConsumer(long consumer) protected static voidaddAnnotationsAsProperties(String prefix, Map map, org.apache.qpid.proton.amqp.messaging.MessageAnnotations annotations) protected SimpleStringcachedAddressSimpleString(String address) voidfinal booleancontainsProperty(String key) final booleanabstract Messagecopy()protected org.apache.qpid.proton.codec.ReadableBuffercreateDeliveryCopy(int deliveryCount, org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations) it will create a copy with the relevant delivery annotation and its copyfinal org.apache.activemq.artemis.utils.collections.TypedPropertiesprotected abstract voidprotected abstract voidprotected voidprotected voidfinal Stringfinal SimpleStringfinal ObjectBefore we added AMQP into Artemis the name getUserID was already taken by JMSMessageID.final Objectfinal org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesReturns a copy of the message'sApplicationPropertiesornullif none present; changes to the returnedApplicationPropertiesinstance do not affect the original message.getApplicationPropertiesMap(boolean createIfAbsent) final org.apache.qpid.proton.amqp.messaging.SectiongetBody()Retrieves the AMQP Section that composes the body of this message by decoding a fresh copy from the encoded message data.final BooleangetBooleanProperty(String key) final Booleanfinal BytegetByteProperty(String key) final Bytefinal byte[]getBytesProperty(String key) final byte[]final Stringfinal Objectprotected abstract org.apache.qpid.proton.codec.ReadableBuffergetData()protected org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesThis will return application properties without attempting to decode it.protected org.apache.qpid.proton.amqp.messaging.MessageAnnotationsfinal org.apache.qpid.proton.amqp.messaging.DeliveryAnnotationsReturns a copy of theDeliveryAnnotationspresent in the message ornullif non present; changes to the returned DeliveryAnnotations instance do not affect the original message.protected intfinal DoublegetDoubleProperty(String key) final Doublefinal Objectabstract intprotected intfinal longfinal byte[]final org.apache.activemq.artemis.utils.collections.TypedPropertiesfinal FloatgetFloatProperty(String key) final Floatfinal org.apache.qpid.proton.amqp.messaging.FooterRetrieves the AMQP Footer encoded in the data of this message by decoding a fresh copy from the encoded message data.final SimpleStringfinal intfinal org.apache.qpid.proton.amqp.messaging.HeaderReturns a copy of this message'sHeaderif one exists ornullif none present; changes to the returnedHeaderinstance do not affect the original message.final IntegergetIntProperty(String key) final Integerfinal SimpleStringfinal LonggetLongProperty(String key) final Longabstract intprotected ObjectgetMessageAnnotation(String annotation) protected ObjectgetMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation) final org.apache.qpid.proton.amqp.messaging.MessageAnnotationsReturns a copy of the message'sMessageAnnotationsornullif none present; changes to the returnedMessageAnnotationsinstance do not affect the original message.getMessageAnnotationsMap(boolean createIfAbsent) final longfinal longfinal ObjectgetObjectProperty(String key) final ObjectintgetOwner()abstract longabstract org.apache.activemq.artemis.core.persistence.Persister<Message> abstract intfinal bytefinal org.apache.qpid.proton.amqp.messaging.PropertiesReturns a copy of the message'sPropertiesif one exists ornullif none present; changes to the returnedPropertiesinstance do not affect the original message.protected SimpleString.StringSimpleStringPoolfinal Set<SimpleString> protected SimpleString.StringSimpleStringPoolfinal org.apache.qpid.proton.message.impl.MessageImplCreates and returns a Proton-J MessageImpl wrapper around the message data.final SimpleStringfinal RoutingTypefinal Longorg.apache.qpid.proton.codec.ReadableBuffergetSendBuffer(int deliveryCount, org.apache.activemq.artemis.core.server.MessageReference reference) Gets a ByteBuf from the Message that contains the encoded bytes to be sent on the wire.final ShortgetShortProperty(String key) final Shortfinal SimpleStringfinal SimpleStringfinal StringgetStringProperty(String key) final Stringfinal Stringfinal longfinal Objectbooleanprotected intbooleanbooleanisPaged()protected org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesprotected org.apache.qpid.proton.amqp.messaging.ApplicationPropertieslazyDecodeApplicationProperties(org.apache.qpid.proton.codec.ReadableBuffer data) protected voidvoidabstract voidpersist(ActiveMQBuffer targetRecord) final MessageputBooleanProperty(String key, boolean value) final MessageputBooleanProperty(SimpleString key, boolean value) final MessageputByteProperty(String key, byte value) final MessageputByteProperty(SimpleString key, byte value) final MessageputBytesProperty(String key, byte[] value) final MessageputBytesProperty(SimpleString key, byte[] value) final MessageputCharProperty(String key, char value) final MessageputCharProperty(SimpleString key, char value) final MessageputDoubleProperty(String key, double value) final MessageputDoubleProperty(SimpleString key, double value) final MessageputExtraBytesProperty(SimpleString key, byte[] value) final MessageputFloatProperty(String key, float value) final MessageputFloatProperty(SimpleString key, float value) final MessageputIntProperty(String key, int value) final MessageputIntProperty(SimpleString key, int value) final MessageputLongProperty(String key, long value) final MessageputLongProperty(SimpleString key, long value) final MessageputObjectProperty(String key, Object value) final MessageputObjectProperty(SimpleString key, Object value) final MessageputShortProperty(String key, short value) final MessageputShortProperty(SimpleString key, short value) final MessageputStringProperty(String key, String value) final MessageputStringProperty(SimpleString key, String value) final MessageputStringProperty(SimpleString key, SimpleString value) final voidreceiveBuffer(io.netty.buffer.ByteBuf buffer) abstract voidreencode()final voidrejectConsumer(long consumer) voidreloadExpiration(long expiration) abstract voidreloadPersistence(ActiveMQBuffer record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools) final Objectfinal byte[]protected ObjectremoveMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation) final ObjectremoveProperty(String key) final Objectprotected voidvoidrouted()protected <T> TscanForMessageSection(int scanStartPosition, Class... targetTypes) protected <T> TscanForMessageSection(org.apache.qpid.proton.codec.ReadableBuffer buffer, int scanStartPosition, Class... targetTypes) protected voidprotected voidscanMessageData(org.apache.qpid.proton.codec.ReadableBuffer data) final voidsendBuffer(io.netty.buffer.ByteBuf buffer, int deliveryCount) Would be called by the Artemis Core components to encode the message into the provided send buffer.final AMQPMessagesetAddress(String address) final AMQPMessagesetAddress(SimpleString address) final AMQPMessagesetAnnotation(SimpleString key, Object value) setBrokerProperty(SimpleString key, Object value) final MessagesetConnectionID(String connectionID) final MessagesetCorrelationID(Object correlationID) final voidsetDeliveryAnnotationsForSendBuffer(org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations) Deprecated.final MessagesetDurable(boolean durable) final AMQPMessagesetExpiration(long expiration) final AMQPMessagesetExtraProperties(org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties) final Messagefinal MessagesetLastValueProperty(SimpleString lastValueName) protected voidsetMessageAnnotation(String annotation, Object value) protected voidsetMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation, Object value) protected voidsetMessageAnnotations(org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations) final MessagesetMessageID(long id) voidvoidsetPaged()final MessagesetPriority(byte priority) final AMQPMessagesetReplyTo(SimpleString address) final MessagesetRoutingType(RoutingType routingType) final AMQPMessagesetScheduledDeliveryTime(Long time) final MessagesetTimestamp(long timestamp) final MessagetoCompositeData(int fieldsLimit, int deliveryCount) toCore()toCore(org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools) final StringThis is different from toString, as this will print an expanded version of the buffer in Hex and programmers's readable formattoPropertyMap(int valueSizeLimit) toString()protected intunmarshalledApplicationPropertiesMemoryEstimateFromData(org.apache.qpid.proton.codec.ReadableBuffer data) protected voidwriteDeliveryAnnotationsForSendBuffer(io.netty.buffer.ByteBuf result, org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations) Methods inherited from class RefCountMessage
counterString, debugLocations, deferredDebug, deferredDebug, deferredDebug, disableErrorCheck, durableDown, durableUp, getDurableCount, getParentRef, getRefCount, getUsage, getUserContext, isRefDebugEnabled, isRefTraceEnabled, isReleased, onDown, onUp, refDown, refUp, registerDebug, releaseComplete, released, setParentRef, setUserContext, usageDown, usageUpMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message
clearAMQPProperties, copy, copy, durableDown, durableUp, getAnnotationString, getBodyBuffer, getBodyInputStream, getDuplicateIDBytes, getDurableCount, getRefCount, getStringBody, getType, getUsage, getUserContext, getValidatedUserID, getWholeMessageSize, isExpired, isLargeMessage, refDown, referenceOriginalMessage, refUp, setGroupID, setGroupID, setGroupSequence, setType, setUserContext, setValidatedUserID, toMap, toMap, toPropertyMap, usageDown, usageUp
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
ADDRESS_PROPERTY
-
DEFAULT_MESSAGE_FORMAT
public static final int DEFAULT_MESSAGE_FORMAT- See Also:
-
DEFAULT_MESSAGE_PRIORITY
public static final int DEFAULT_MESSAGE_PRIORITY- See Also:
-
MAX_MESSAGE_PRIORITY
public static final int MAX_MESSAGE_PRIORITY- See Also:
-
VALUE_NOT_PRESENT
protected static final int VALUE_NOT_PRESENT- See Also:
-
messageDataScanned
protected byte messageDataScanned -
modified
protected boolean modified -
headerPosition
protected int headerPosition -
encodedHeaderSize
protected int encodedHeaderSize -
deliveryAnnotationsPosition
protected int deliveryAnnotationsPosition -
encodedDeliveryAnnotationsSize
protected int encodedDeliveryAnnotationsSize -
messageAnnotationsPosition
protected int messageAnnotationsPosition -
propertiesPosition
protected int propertiesPosition -
applicationPropertiesPosition
protected int applicationPropertiesPosition -
remainingBodyPosition
protected int remainingBodyPosition -
messageFormat
protected final long messageFormat -
messageID
protected long messageID -
address
-
memoryEstimate
protected volatile int memoryEstimate -
originalEstimate
protected volatile int originalEstimate -
expiration
protected long expiration -
expirationReload
protected boolean expirationReload -
scheduledTime
protected long scheduledTime -
priority
protected byte priority -
isPaged
protected boolean isPaged -
routed
protected volatile boolean routed -
header
protected org.apache.qpid.proton.amqp.messaging.Header header -
messageAnnotations
protected org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations -
properties
protected org.apache.qpid.proton.amqp.messaging.Properties properties -
applicationProperties
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties applicationProperties -
connectionID
-
coreMessageObjectPools
protected final org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools -
rejectedConsumers
-
deliveryAnnotationsForSendBuffer
protected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotationsForSendBuffer -
deliveryAnnotations
protected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations -
extraProperties
protected volatile org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties
-
-
Constructor Details
-
AMQPMessage
public AMQPMessage(long messageFormat, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools) Creates a newAMQPMessageinstance from binary encoded message data.- Parameters:
messageFormat- The Message format tag given the in Transfer that carried this messageextraProperties- Broker specific extra properties that should be carried with this message
-
AMQPMessage
-
AMQPMessage
protected AMQPMessage(long messageFormat)
-
-
Method Details
-
routed
-
getProtocolName
- Specified by:
getProtocolNamein interfaceMessage
-
getDataScanningStatus
-
isPaged
-
setPaged
-
getDecodedApplicationProperties
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties getDecodedApplicationProperties()This will return application properties without attempting to decode it. That means, if applicationProperties were never parsed before, this will return null, even if there is application properties. This was created as an internal method for testing, as we need to validate if the application properties are not decoded until needed. -
getDecodedMessageAnnotations
protected org.apache.qpid.proton.amqp.messaging.MessageAnnotations getDecodedMessageAnnotations() -
getData
protected abstract org.apache.qpid.proton.codec.ReadableBuffer getData() -
getProtonMessage
public final org.apache.qpid.proton.message.impl.MessageImpl getProtonMessage()Creates and returns a Proton-J MessageImpl wrapper around the message data. Changes to the returned Message are not reflected in this message.- Returns:
- a MessageImpl that wraps the AMQP message data in this
AMQPMessage
-
getObjectPropertyForFilter
- Specified by:
getObjectPropertyForFilterin interfaceMessage
-
getHeader
public final org.apache.qpid.proton.amqp.messaging.Header getHeader()Returns a copy of this message'sHeaderif one exists ornullif none present; changes to the returnedHeaderinstance do not affect the original message.- Returns:
- a copy of this message's
Headerif one exists ornullif none present; changes to the returnedHeaderinstance do not affect the original message
-
ensureScanning
protected void ensureScanning() -
getDeliveryAnnotations
public final org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations getDeliveryAnnotations()Returns a copy of theDeliveryAnnotationspresent in the message ornullif non present; changes to the returned DeliveryAnnotations instance do not affect the original message.- Returns:
- a copy of the
DeliveryAnnotationspresent in the message ornullif non present; changes to the returned DeliveryAnnotations instance do not affect the original message
-
setDeliveryAnnotationsForSendBuffer
@Deprecated public final void setDeliveryAnnotationsForSendBuffer(org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations) Deprecated.useMessageReference.setProtocolData(Class, Object)Sets the delivery annotations to be included when encoding the message for sending it on the wire.The broker can add additional message annotations as long as the annotations being added follow the rules from the spec. If the user adds something that the remote doesn't understand and it is not prefixed with "x-opt" the remote can just kill the link. See:
http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-annotations
- Parameters:
deliveryAnnotations- delivery annotations used in the sendBuffer() method
-
getMessageAnnotations
public final org.apache.qpid.proton.amqp.messaging.MessageAnnotations getMessageAnnotations()Returns a copy of the message'sMessageAnnotationsornullif none present; changes to the returnedMessageAnnotationsinstance do not affect the original message.- Returns:
- a copy of the message's
MessageAnnotationsornullif none present; changes to the returnedMessageAnnotationsinstance do not affect the original message
-
getProperties
public final org.apache.qpid.proton.amqp.messaging.Properties getProperties()Returns a copy of the message'sPropertiesif one exists ornullif none present; changes to the returnedPropertiesinstance do not affect the original message.- Returns:
- a copy of the message's
Propertiesif one exists ornullif none present; changes to the returnedPropertiesinstance do not affect the original message
-
getApplicationProperties
public final org.apache.qpid.proton.amqp.messaging.ApplicationProperties getApplicationProperties()Returns a copy of the message'sApplicationPropertiesornullif none present; changes to the returnedApplicationPropertiesinstance do not affect the original message.- Returns:
- a copy of the message's
ApplicationPropertiesornullif none present; changes to the returnedApplicationPropertiesinstance do not affect the original message
-
toDebugString
This is different from toString, as this will print an expanded version of the buffer in Hex and programmers's readable format -
getBody
public final 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. Changes to the returned value are not reflected in the value encoded in the original message.- Returns:
- the Section that makes up the body of this message
-
scanForMessageSection
-
scanForMessageSection
protected <T> T scanForMessageSection(org.apache.qpid.proton.codec.ReadableBuffer buffer, int scanStartPosition, Class... targetTypes) -
lazyDecodeApplicationProperties
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties lazyDecodeApplicationProperties() -
lazyDecodeApplicationProperties
protected org.apache.qpid.proton.amqp.messaging.ApplicationProperties lazyDecodeApplicationProperties(org.apache.qpid.proton.codec.ReadableBuffer data) -
unmarshalledApplicationPropertiesMemoryEstimateFromData
protected int unmarshalledApplicationPropertiesMemoryEstimateFromData(org.apache.qpid.proton.codec.ReadableBuffer data) -
getApplicationPropertiesMap
-
getMessageAnnotationsMap
-
getMessageAnnotation
-
getMessageAnnotation
-
removeMessageAnnotation
-
setMessageAnnotation
-
setMessageAnnotation
-
setMessageAnnotations
protected void setMessageAnnotations(org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations) -
ensureMessageDataScanned
protected void ensureMessageDataScanned() -
getEstimateSavedEncode
protected int getEstimateSavedEncode() -
resetMessageData
protected void resetMessageData() -
scanMessageData
protected void scanMessageData() -
scanMessageData
protected void scanMessageData(org.apache.qpid.proton.codec.ReadableBuffer data) -
copy
-
sendBuffer
public final 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. Because of how Proton message data handling works this method is not currently used by the AMQP protocol head and will not be called for out-bound sends.- Specified by:
sendBufferin interfaceMessage- See Also:
-
getSendBuffer
public org.apache.qpid.proton.codec.ReadableBuffer getSendBuffer(int deliveryCount, org.apache.activemq.artemis.core.server.MessageReference reference) Gets a ByteBuf from the Message that contains the encoded bytes to be sent on the wire.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.
- Parameters:
deliveryCount- The new delivery count for this message.- Returns:
- a Netty ByteBuf containing the encoded bytes of this Message instance
-
createDeliveryCopy
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 -
writeDeliveryAnnotationsForSendBuffer
protected void writeDeliveryAnnotationsForSendBuffer(io.netty.buffer.ByteBuf result, org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations) -
getDeliveryAnnotationsForSendBufferSize
protected int getDeliveryAnnotationsForSendBufferSize() -
messageChanged
public void messageChanged()- Specified by:
messageChangedin interfaceMessage
-
getEncodeSize
public abstract int getEncodeSize()- Specified by:
getEncodeSizein interfaceMessage
-
receiveBuffer
public final void receiveBuffer(io.netty.buffer.ByteBuf buffer) - Specified by:
receiveBufferin interfaceMessage
-
getMemoryEstimate
public abstract int getMemoryEstimate()- Specified by:
getMemoryEstimatein interfaceMessage
-
getOriginalEstimate
public int getOriginalEstimate()- Specified by:
getOriginalEstimatein interfaceMessage
-
toPropertyMap
- Specified by:
toPropertyMapin interfaceMessage
-
addAnnotationsAsProperties
-
toCore
public ICoreMessage toCore(org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools) -
toCore
-
persist
-
getPersistSize
public abstract int getPersistSize()- Specified by:
getPersistSizein interfaceMessage
-
internalPersistSize
protected int internalPersistSize() -
reloadPersistence
public abstract void reloadPersistence(ActiveMQBuffer record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools) - Specified by:
reloadPersistencein interfaceMessage
-
lazyScanAfterReloadPersistence
protected void lazyScanAfterReloadPersistence() -
getPersistentSize
- Specified by:
getPersistentSizein interfaceMessage- Throws:
ActiveMQException
-
getPersister
- Specified by:
getPersisterin interfaceMessage
-
reencode
-
ensureDataIsValid
protected abstract void ensureDataIsValid() -
encodeMessage
protected abstract void encodeMessage() -
createExtraProperties
public final org.apache.activemq.artemis.utils.collections.TypedProperties createExtraProperties() -
getExtraProperties
public final org.apache.activemq.artemis.utils.collections.TypedProperties getExtraProperties() -
setExtraProperties
public final AMQPMessage setExtraProperties(org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties) -
putExtraBytesProperty
- Specified by:
putExtraBytesPropertyin interfaceMessage
-
getExtraBytesProperty
public final byte[] getExtraBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException - Specified by:
getExtraBytesPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
clearInternalProperties
public void clearInternalProperties()- Specified by:
clearInternalPropertiesin interfaceMessage
-
removeExtraBytesProperty
public final byte[] removeExtraBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException - Specified by:
removeExtraBytesPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
setConnectionID
- Specified by:
setConnectionIDin interfaceMessage
-
getConnectionID
- Specified by:
getConnectionIDin interfaceMessage
-
getMessageFormat
public final long getMessageFormat() -
getMessageID
public final long getMessageID()- Specified by:
getMessageIDin interfaceMessage
-
setMessageID
- Specified by:
setMessageIDin interfaceMessage
-
getExpiration
public final long getExpiration()- Specified by:
getExpirationin interfaceMessage
-
reloadExpiration
public void reloadExpiration(long expiration) -
setExpiration
- Specified by:
setExpirationin interfaceMessage
-
getUserID
-
getAMQPUserID
Before we added AMQP into Artemis the name getUserID was already taken by JMSMessageID. We cannot simply change the names now as it would break the API for existing clients.This is to return and read the proper AMQP userID.
- Returns:
- the UserID value in the AMQP Properties if one is present
-
setUserID
-
getDuplicateProperty
- Specified by:
getDuplicatePropertyin interfaceMessage
-
isDurable
-
setDurable
- Specified by:
setDurablein interfaceMessage
-
getAddress
- Specified by:
getAddressin interfaceMessage
-
setAddress
- Specified by:
setAddressin interfaceMessage
-
setAddress
- Specified by:
setAddressin interfaceMessage
-
getAddressSimpleString
- Specified by:
getAddressSimpleStringin interfaceMessage
-
cachedAddressSimpleString
-
getTimestamp
public final long getTimestamp()- Specified by:
getTimestampin interfaceMessage
-
setTimestamp
- Specified by:
setTimestampin interfaceMessage
-
getPriority
public final byte getPriority()- Specified by:
getPriorityin interfaceMessage
-
setPriority
- Specified by:
setPriorityin interfaceMessage
-
getReplyTo
- Specified by:
getReplyToin interfaceMessage
-
setReplyTo
- Specified by:
setReplyToin interfaceMessage
-
getRoutingType
- Specified by:
getRoutingTypein interfaceMessage
-
setRoutingType
- Specified by:
setRoutingTypein interfaceMessage
-
getGroupID
- Specified by:
getGroupIDin interfaceMessage
-
getGroupSequence
public final int getGroupSequence()- Specified by:
getGroupSequencein interfaceMessage
-
getCorrelationID
- Specified by:
getCorrelationIDin interfaceMessage
-
setCorrelationID
- Specified by:
setCorrelationIDin interfaceMessage
-
getSubject
-
hasScheduledDeliveryTime
public boolean hasScheduledDeliveryTime()- Specified by:
hasScheduledDeliveryTimein interfaceMessage
-
getScheduledDeliveryTime
- Specified by:
getScheduledDeliveryTimein interfaceMessage
-
setScheduledDeliveryTime
- Specified by:
setScheduledDeliveryTimein interfaceMessage
-
removeAnnotation
- Specified by:
removeAnnotationin interfaceMessage
-
getAnnotation
- Specified by:
getAnnotationin interfaceMessage
-
setAnnotation
- Specified by:
setAnnotationin interfaceMessage
-
setBrokerProperty
- Specified by:
setBrokerPropertyin interfaceMessage
-
getBrokerProperty
- Specified by:
getBrokerPropertyin interfaceMessage
-
setIngressTimestamp
- Specified by:
setIngressTimestampin interfaceMessage
-
getIngressTimestamp
- Specified by:
getIngressTimestampin interfaceMessage
-
removeProperty
- Specified by:
removePropertyin interfaceMessage
-
removeProperty
- Specified by:
removePropertyin interfaceMessage
-
containsProperty
- Specified by:
containsPropertyin interfaceMessage
-
containsProperty
- Specified by:
containsPropertyin interfaceMessage
-
getBooleanProperty
- Specified by:
getBooleanPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getByteProperty
- Specified by:
getBytePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getDoubleProperty
- Specified by:
getDoublePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getIntProperty
- Specified by:
getIntPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getLongProperty
- Specified by:
getLongPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getObjectProperty
- Specified by:
getObjectPropertyin interfaceMessage
-
getShortProperty
- Specified by:
getShortPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getFloatProperty
- Specified by:
getFloatPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getStringProperty
- Specified by:
getStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceMessage
-
getBooleanProperty
public final Boolean getBooleanProperty(SimpleString key) throws ActiveMQPropertyConversionException - Specified by:
getBooleanPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getByteProperty
- Specified by:
getBytePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getBytesProperty
- Specified by:
getBytesPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getDoubleProperty
- Specified by:
getDoublePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getIntProperty
- Specified by:
getIntPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getLongProperty
- Specified by:
getLongPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getObjectProperty
- Specified by:
getObjectPropertyin interfaceMessage
-
getShortProperty
- Specified by:
getShortPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getFloatProperty
- Specified by:
getFloatPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getStringProperty
- Specified by:
getStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getSimpleStringProperty
public final SimpleString getSimpleStringProperty(SimpleString key) throws ActiveMQPropertyConversionException - Specified by:
getSimpleStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getBytesProperty
- Specified by:
getBytesPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getSimpleStringProperty
public final SimpleString getSimpleStringProperty(String key) throws ActiveMQPropertyConversionException - Specified by:
getSimpleStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putBooleanProperty
- Specified by:
putBooleanPropertyin interfaceMessage
-
putByteProperty
- Specified by:
putBytePropertyin interfaceMessage
-
putBytesProperty
- Specified by:
putBytesPropertyin interfaceMessage
-
putShortProperty
- Specified by:
putShortPropertyin interfaceMessage
-
putCharProperty
- Specified by:
putCharPropertyin interfaceMessage
-
putIntProperty
- Specified by:
putIntPropertyin interfaceMessage
-
putLongProperty
- Specified by:
putLongPropertyin interfaceMessage
-
putFloatProperty
- Specified by:
putFloatPropertyin interfaceMessage
-
putDoubleProperty
- Specified by:
putDoublePropertyin interfaceMessage
-
putBooleanProperty
- Specified by:
putBooleanPropertyin interfaceMessage
-
putByteProperty
- Specified by:
putBytePropertyin interfaceMessage
-
putBytesProperty
- Specified by:
putBytesPropertyin interfaceMessage
-
putShortProperty
- Specified by:
putShortPropertyin interfaceMessage
-
putCharProperty
- Specified by:
putCharPropertyin interfaceMessage
-
putIntProperty
- Specified by:
putIntPropertyin interfaceMessage
-
putLongProperty
- Specified by:
putLongPropertyin interfaceMessage
-
putFloatProperty
- Specified by:
putFloatPropertyin interfaceMessage
-
putDoubleProperty
- Specified by:
putDoublePropertyin interfaceMessage
-
putStringProperty
- Specified by:
putStringPropertyin interfaceMessage
-
putObjectProperty
public final Message putObjectProperty(String key, Object value) throws ActiveMQPropertyConversionException - Specified by:
putObjectPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putObjectProperty
public final Message putObjectProperty(SimpleString key, Object value) throws ActiveMQPropertyConversionException - Specified by:
putObjectPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putStringProperty
- Specified by:
putStringPropertyin interfaceMessage
-
putStringProperty
- Specified by:
putStringPropertyin interfaceMessage
-
getLastValueProperty
- Specified by:
getLastValuePropertyin interfaceMessage
-
setLastValueProperty
- Specified by:
setLastValuePropertyin interfaceMessage
-
toString
-
acceptsConsumer
public final boolean acceptsConsumer(long consumer) - Specified by:
acceptsConsumerin interfaceMessage
-
rejectConsumer
public final void rejectConsumer(long consumer) - Specified by:
rejectConsumerin interfaceMessage
-
getPropertyKeysPool
-
getPropertyValuesPool
-
getOwner
-
setOwner
-
toCompositeData
- Specified by:
toCompositeDatain interfaceMessage- Throws:
OpenDataException
-
MessageReference.setProtocolData(Class, Object)