Class AMQPMessage
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.RefCountMessage
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage
-
- All Implemented Interfaces:
org.apache.activemq.artemis.api.core.Message
- Direct Known Subclasses:
AMQPLargeMessage,AMQPStandardMessage
public abstract class AMQPMessage extends org.apache.activemq.artemis.api.core.RefCountMessage implements org.apache.activemq.artemis.api.core.MessageSee AMQP v1.0 message formatBare 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 Classes Modifier and Type Class Description static classAMQPMessage.MessageDataScanningStatusThis has been made public just for testing purposes: it's not stable and developers shouldn't rely on this for developing purposes.
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.activemq.artemis.api.core.SimpleStringaddressstatic org.apache.activemq.artemis.api.core.SimpleStringADDRESS_PROPERTYprotected org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesapplicationPropertiesprotected intapplicationPropertiesPositionprotected java.lang.StringconnectionIDprotected org.apache.activemq.artemis.core.persistence.CoreMessageObjectPoolscoreMessageObjectPoolsstatic intDEFAULT_MESSAGE_FORMATstatic intDEFAULT_MESSAGE_PRIORITYprotected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotationsdeliveryAnnotationsprotected org.apache.qpid.proton.amqp.messaging.DeliveryAnnotationsdeliveryAnnotationsForSendBufferprotected intdeliveryAnnotationsPositionprotected intencodedDeliveryAnnotationsSizeprotected intencodedHeaderSizeprotected longexpirationprotected booleanexpirationReloadprotected org.apache.activemq.artemis.utils.collections.TypedPropertiesextraPropertiesprotected org.apache.qpid.proton.amqp.messaging.Headerheaderprotected intheaderPositionprotected static org.jboss.logging.Loggerloggerstatic intMAX_MESSAGE_PRIORITYprotected intmemoryEstimateprotected org.apache.qpid.proton.amqp.messaging.MessageAnnotationsmessageAnnotationsprotected intmessageAnnotationsPositionprotected bytemessageDataScannedprotected longmessageFormatprotected longmessageIDprotected booleanmodifiedprotected org.apache.qpid.proton.amqp.messaging.Propertiespropertiesprotected intpropertiesPositionprotected java.util.Set<java.lang.Object>rejectedConsumersprotected intremainingBodyPositionprotected longscheduledTimeprotected static intVALUE_NOT_PRESENT-
Fields inherited from interface org.apache.activemq.artemis.api.core.Message
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAMQPMessage(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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanacceptsConsumer(long consumer)protected static voidaddAnnotationsAsProperties(java.lang.String prefix, java.util.Map map, org.apache.qpid.proton.amqp.messaging.MessageAnnotations annotations)protected org.apache.activemq.artemis.api.core.SimpleStringcachedAddressSimpleString(java.lang.String address)voidclearInternalProperties()booleancontainsProperty(java.lang.String key)booleancontainsProperty(org.apache.activemq.artemis.api.core.SimpleString key)abstract org.apache.activemq.artemis.api.core.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 copyorg.apache.activemq.artemis.utils.collections.TypedPropertiescreateExtraProperties()protected abstract voidencodeMessage()protected abstract voidensureDataIsValid()protected voidensureMessageDataScanned()protected voidensureScanning()java.lang.StringgetAddress()org.apache.activemq.artemis.api.core.SimpleStringgetAddressSimpleString()java.lang.ObjectgetAMQPUserID()Before we added AMQP into Artemis the name getUserID was already taken by JMSMessageID.java.lang.ObjectgetAnnotation(org.apache.activemq.artemis.api.core.SimpleString key)org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesgetApplicationProperties()Returns a copy of theApplicationPropertiespresent in the message if present or null.protected java.util.Map<java.lang.String,java.lang.Object>getApplicationPropertiesMap(boolean createIfAbsent)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.java.lang.BooleangetBooleanProperty(java.lang.String key)java.lang.BooleangetBooleanProperty(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.ObjectgetBrokerProperty(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.BytegetByteProperty(java.lang.String key)java.lang.BytegetByteProperty(org.apache.activemq.artemis.api.core.SimpleString key)byte[]getBytesProperty(java.lang.String key)byte[]getBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.StringgetConnectionID()java.lang.ObjectgetCorrelationID()protected abstract org.apache.qpid.proton.codec.ReadableBuffergetData()AMQPMessage.MessageDataScanningStatusgetDataScanningStatus()protected org.apache.qpid.proton.amqp.messaging.ApplicationPropertiesgetDecodedApplicationProperties()This will return application properties without attempting to decode it.protected org.apache.qpid.proton.amqp.messaging.MessageAnnotationsgetDecodedMessageAnnotations()org.apache.qpid.proton.amqp.messaging.DeliveryAnnotationsgetDeliveryAnnotations()Returns a copy of the MessageAnnotations in the message if present or null.protected intgetDeliveryAnnotationsForSendBufferSize()java.lang.DoublegetDoubleProperty(java.lang.String key)java.lang.DoublegetDoubleProperty(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.ObjectgetDuplicateProperty()abstract intgetEncodeSize()protected intgetEstimateSavedEncode()longgetExpiration()byte[]getExtraBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key)org.apache.activemq.artemis.utils.collections.TypedPropertiesgetExtraProperties()java.lang.FloatgetFloatProperty(java.lang.String key)java.lang.FloatgetFloatProperty(org.apache.activemq.artemis.api.core.SimpleString key)org.apache.qpid.proton.amqp.messaging.FootergetFooter()Retrieves the AMQP Footer encoded in the data of this message by decoding a fresh copy from the encoded message data.org.apache.activemq.artemis.api.core.SimpleStringgetGroupID()intgetGroupSequence()org.apache.qpid.proton.amqp.messaging.HeadergetHeader()Returns a copy of the message Header if one is present, changes to the returned Header instance do not affect the original Message.java.lang.LonggetIngressTimestamp()java.lang.IntegergetIntProperty(java.lang.String key)java.lang.IntegergetIntProperty(org.apache.activemq.artemis.api.core.SimpleString key)org.apache.activemq.artemis.api.core.SimpleStringgetLastValueProperty()java.lang.LonggetLongProperty(java.lang.String key)java.lang.LonggetLongProperty(org.apache.activemq.artemis.api.core.SimpleString key)abstract intgetMemoryEstimate()protected java.lang.ObjectgetMessageAnnotation(java.lang.String annotation)protected java.lang.ObjectgetMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation)org.apache.qpid.proton.amqp.messaging.MessageAnnotationsgetMessageAnnotations()Returns a copy of the DeliveryAnnotations in the message if present or null.protected java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object>getMessageAnnotationsMap(boolean createIfAbsent)longgetMessageFormat()longgetMessageID()java.lang.ObjectgetObjectProperty(java.lang.String key)java.lang.ObjectgetObjectProperty(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.ObjectgetObjectPropertyForFilter(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.ObjectgetOwner()abstract longgetPersistentSize()abstract org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>getPersister()abstract intgetPersistSize()bytegetPriority()org.apache.qpid.proton.amqp.messaging.PropertiesgetProperties()Returns a copy of the message Properties if one is present, changes to the returned Properties instance do not affect the original Message.protected org.apache.activemq.artemis.api.core.SimpleString.StringSimpleStringPoolgetPropertyKeysPool()java.util.Set<org.apache.activemq.artemis.api.core.SimpleString>getPropertyNames()protected org.apache.activemq.artemis.api.core.SimpleString.StringSimpleStringPoolgetPropertyValuesPool()java.lang.StringgetProtocolName()org.apache.qpid.proton.message.impl.MessageImplgetProtonMessage()Creates and returns a Proton-J MessageImpl wrapper around the message data.org.apache.activemq.artemis.api.core.SimpleStringgetReplyTo()org.apache.activemq.artemis.api.core.RoutingTypegetRoutingType()java.lang.LonggetScheduledDeliveryTime()org.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.java.lang.ShortgetShortProperty(java.lang.String key)java.lang.ShortgetShortProperty(org.apache.activemq.artemis.api.core.SimpleString key)org.apache.activemq.artemis.api.core.SimpleStringgetSimpleStringProperty(java.lang.String key)org.apache.activemq.artemis.api.core.SimpleStringgetSimpleStringProperty(org.apache.activemq.artemis.api.core.SimpleString key)java.lang.StringgetStringProperty(java.lang.String key)java.lang.StringgetStringProperty(org.apache.activemq.artemis.api.core.SimpleString key)longgetTimestamp()java.lang.ObjectgetUserID()booleanhasScheduledDeliveryTime()protected intinternalPersistSize()booleanisDurable()protected org.apache.qpid.proton.amqp.messaging.ApplicationPropertieslazyDecodeApplicationProperties()protected org.apache.qpid.proton.amqp.messaging.ApplicationPropertieslazyDecodeApplicationProperties(org.apache.qpid.proton.codec.ReadableBuffer data)protected voidlazyScanAfterReloadPersistence()voidmessageChanged()abstract voidpersist(org.apache.activemq.artemis.api.core.ActiveMQBuffer targetRecord)org.apache.activemq.artemis.api.core.MessageputBooleanProperty(java.lang.String key, boolean value)org.apache.activemq.artemis.api.core.MessageputBooleanProperty(org.apache.activemq.artemis.api.core.SimpleString key, boolean value)org.apache.activemq.artemis.api.core.MessageputByteProperty(java.lang.String key, byte value)org.apache.activemq.artemis.api.core.MessageputByteProperty(org.apache.activemq.artemis.api.core.SimpleString key, byte value)org.apache.activemq.artemis.api.core.MessageputBytesProperty(java.lang.String key, byte[] value)org.apache.activemq.artemis.api.core.MessageputBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key, byte[] value)org.apache.activemq.artemis.api.core.MessageputCharProperty(java.lang.String key, char value)org.apache.activemq.artemis.api.core.MessageputCharProperty(org.apache.activemq.artemis.api.core.SimpleString key, char value)org.apache.activemq.artemis.api.core.MessageputDoubleProperty(java.lang.String key, double value)org.apache.activemq.artemis.api.core.MessageputDoubleProperty(org.apache.activemq.artemis.api.core.SimpleString key, double value)org.apache.activemq.artemis.api.core.MessageputExtraBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key, byte[] value)org.apache.activemq.artemis.api.core.MessageputFloatProperty(java.lang.String key, float value)org.apache.activemq.artemis.api.core.MessageputFloatProperty(org.apache.activemq.artemis.api.core.SimpleString key, float value)org.apache.activemq.artemis.api.core.MessageputIntProperty(java.lang.String key, int value)org.apache.activemq.artemis.api.core.MessageputIntProperty(org.apache.activemq.artemis.api.core.SimpleString key, int value)org.apache.activemq.artemis.api.core.MessageputLongProperty(java.lang.String key, long value)org.apache.activemq.artemis.api.core.MessageputLongProperty(org.apache.activemq.artemis.api.core.SimpleString key, long value)org.apache.activemq.artemis.api.core.MessageputObjectProperty(java.lang.String key, java.lang.Object value)org.apache.activemq.artemis.api.core.MessageputObjectProperty(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.Object value)org.apache.activemq.artemis.api.core.MessageputShortProperty(java.lang.String key, short value)org.apache.activemq.artemis.api.core.MessageputShortProperty(org.apache.activemq.artemis.api.core.SimpleString key, short value)org.apache.activemq.artemis.api.core.MessageputStringProperty(java.lang.String key, java.lang.String value)org.apache.activemq.artemis.api.core.MessageputStringProperty(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.String value)org.apache.activemq.artemis.api.core.MessageputStringProperty(org.apache.activemq.artemis.api.core.SimpleString key, org.apache.activemq.artemis.api.core.SimpleString value)voidreceiveBuffer(io.netty.buffer.ByteBuf buffer)abstract voidreencode()voidrejectConsumer(long consumer)voidreloadExpiration(long expiration)abstract voidreloadPersistence(org.apache.activemq.artemis.api.core.ActiveMQBuffer record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools)java.lang.ObjectremoveAnnotation(org.apache.activemq.artemis.api.core.SimpleString key)byte[]removeExtraBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key)protected java.lang.ObjectremoveMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation)java.lang.ObjectremoveProperty(java.lang.String key)java.lang.ObjectremoveProperty(org.apache.activemq.artemis.api.core.SimpleString key)protected voidresetMessageData()protected <T> TscanForMessageSection(int scanStartPosition, java.lang.Class... targetTypes)protected <T> TscanForMessageSection(org.apache.qpid.proton.codec.ReadableBuffer buffer, int scanStartPosition, java.lang.Class... targetTypes)protected voidscanMessageData()protected voidscanMessageData(org.apache.qpid.proton.codec.ReadableBuffer data)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.AMQPMessagesetAddress(java.lang.String address)AMQPMessagesetAddress(org.apache.activemq.artemis.api.core.SimpleString address)AMQPMessagesetAnnotation(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.Object value)org.apache.activemq.artemis.api.core.MessagesetBrokerProperty(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.Object value)org.apache.activemq.artemis.api.core.MessagesetConnectionID(java.lang.String connectionID)org.apache.activemq.artemis.api.core.MessagesetCorrelationID(java.lang.Object correlationID)voidsetDeliveryAnnotationsForSendBuffer(org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)Deprecated.use MessageReference.setProtocolData(deliveryAnnotations)org.apache.activemq.artemis.api.core.MessagesetDurable(boolean durable)AMQPMessagesetExpiration(long expiration)AMQPMessagesetExtraProperties(org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties)org.apache.activemq.artemis.api.core.MessagesetIngressTimestamp()org.apache.activemq.artemis.api.core.MessagesetLastValueProperty(org.apache.activemq.artemis.api.core.SimpleString lastValueName)protected voidsetMessageAnnotation(java.lang.String annotation, java.lang.Object value)protected voidsetMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation, java.lang.Object value)protected voidsetMessageAnnotations(org.apache.qpid.proton.amqp.messaging.MessageAnnotations messageAnnotations)org.apache.activemq.artemis.api.core.MessagesetMessageID(long id)voidsetOwner(java.lang.Object object)org.apache.activemq.artemis.api.core.MessagesetPriority(byte priority)AMQPMessagesetReplyTo(org.apache.activemq.artemis.api.core.SimpleString address)org.apache.activemq.artemis.api.core.MessagesetRoutingType(org.apache.activemq.artemis.api.core.RoutingType routingType)AMQPMessagesetScheduledDeliveryTime(java.lang.Long time)org.apache.activemq.artemis.api.core.MessagesetTimestamp(long timestamp)org.apache.activemq.artemis.api.core.MessagesetUserID(java.lang.Object userID)javax.management.openmbean.CompositeDatatoCompositeData(int fieldsLimit, int deliveryCount)org.apache.activemq.artemis.api.core.ICoreMessagetoCore()org.apache.activemq.artemis.api.core.ICoreMessagetoCore(org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools)java.lang.StringtoDebugString()This is different from toString, as this will print an expanded version of the buffer in Hex and programmers's readable formatjava.util.Map<java.lang.String,java.lang.Object>toPropertyMap(int valueSizeLimit)java.lang.StringtoString()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 org.apache.activemq.artemis.api.core.RefCountMessage
debugRefs, debugString, durableDown, durableUp, getDurableCount, getParentRef, getRefCount, getUsage, getUserContext, refDown, refUp, releaseComplete, setParentRef, setUserContext, usageDown, usageUp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.api.core.Message
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 Detail
-
logger
protected static final org.jboss.logging.Logger logger
-
ADDRESS_PROPERTY
public static final org.apache.activemq.artemis.api.core.SimpleString ADDRESS_PROPERTY
-
DEFAULT_MESSAGE_FORMAT
public static final int DEFAULT_MESSAGE_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_MESSAGE_PRIORITY
public static final int DEFAULT_MESSAGE_PRIORITY
- See Also:
- Constant Field Values
-
MAX_MESSAGE_PRIORITY
public static final int MAX_MESSAGE_PRIORITY
- See Also:
- Constant Field Values
-
VALUE_NOT_PRESENT
protected static final int VALUE_NOT_PRESENT
- See Also:
- Constant Field Values
-
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
protected org.apache.activemq.artemis.api.core.SimpleString address
-
memoryEstimate
protected volatile int memoryEstimate
-
expiration
protected long expiration
-
expirationReload
protected boolean expirationReload
-
scheduledTime
protected long scheduledTime
-
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
protected java.lang.String connectionID
-
coreMessageObjectPools
protected final org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools
-
rejectedConsumers
protected java.util.Set<java.lang.Object> 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 Detail
-
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
protected AMQPMessage(AMQPMessage copy)
-
AMQPMessage
protected AMQPMessage(long messageFormat)
-
-
Method Detail
-
getProtocolName
public java.lang.String getProtocolName()
- Specified by:
getProtocolNamein interfaceorg.apache.activemq.artemis.api.core.Message
-
getDataScanningStatus
public final AMQPMessage.MessageDataScanningStatus getDataScanningStatus()
-
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
public java.lang.Object getObjectPropertyForFilter(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
getObjectPropertyForFilterin interfaceorg.apache.activemq.artemis.api.core.Message
-
getHeader
public final 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.- Returns:
- a copy of the Message Header if one exists or null if none present.
-
ensureScanning
protected void ensureScanning()
-
getDeliveryAnnotations
public final org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations getDeliveryAnnotations()
Returns a copy of the MessageAnnotations in the message if present or null. Changes to the returned DeliveryAnnotations instance do not affect the original Message.- Returns:
- a copy of the
DeliveryAnnotationspresent in the message or null if non present.
-
setDeliveryAnnotationsForSendBuffer
@Deprecated public final void setDeliveryAnnotationsForSendBuffer(org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations deliveryAnnotations)
Deprecated.use MessageReference.setProtocolData(deliveryAnnotations)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 DeliveryAnnotations in the message if present or null. Changes to the returned MessageAnnotations instance do not affect the original Message.- Returns:
- a copy of the
MessageAnnotationspresent in the message or null if non present.
-
getProperties
public final 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.- Returns:
- a copy of the Message Properties if one exists or null if none present.
-
getApplicationProperties
public final org.apache.qpid.proton.amqp.messaging.ApplicationProperties getApplicationProperties()
Returns a copy of theApplicationPropertiespresent in the message if present or null. Changes to the returned MessageAnnotations instance do not affect the original Message.- Returns:
- a copy of the
ApplicationPropertiespresent in the message or null if non present.
-
toDebugString
public final java.lang.String 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.
-
getFooter
public final 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. Changes to the returned value are not reflected in the value encoded in the original message.- Returns:
- the Footer that was encoded into this AMQP Message.
-
scanForMessageSection
protected <T> T scanForMessageSection(int scanStartPosition, java.lang.Class... targetTypes)
-
scanForMessageSection
protected <T> T scanForMessageSection(org.apache.qpid.proton.codec.ReadableBuffer buffer, int scanStartPosition, java.lang.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
protected java.util.Map<java.lang.String,java.lang.Object> getApplicationPropertiesMap(boolean createIfAbsent)
-
getMessageAnnotationsMap
protected java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> getMessageAnnotationsMap(boolean createIfAbsent)
-
getMessageAnnotation
protected java.lang.Object getMessageAnnotation(java.lang.String annotation)
-
getMessageAnnotation
protected java.lang.Object getMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation)
-
removeMessageAnnotation
protected java.lang.Object removeMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation)
-
setMessageAnnotation
protected void setMessageAnnotation(java.lang.String annotation, java.lang.Object value)
-
setMessageAnnotation
protected void setMessageAnnotation(org.apache.qpid.proton.amqp.Symbol annotation, java.lang.Object value)
-
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
public abstract org.apache.activemq.artemis.api.core.Message copy()
- Specified by:
copyin interfaceorg.apache.activemq.artemis.api.core.Message
-
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 interfaceorg.apache.activemq.artemis.api.core.Message- See Also:
for the actual method used for message sends.
-
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 interfaceorg.apache.activemq.artemis.api.core.Message
-
getEncodeSize
public abstract int getEncodeSize()
- Specified by:
getEncodeSizein interfaceorg.apache.activemq.artemis.api.core.Message
-
receiveBuffer
public final void receiveBuffer(io.netty.buffer.ByteBuf buffer)
- Specified by:
receiveBufferin interfaceorg.apache.activemq.artemis.api.core.Message
-
getMemoryEstimate
public abstract int getMemoryEstimate()
- Specified by:
getMemoryEstimatein interfaceorg.apache.activemq.artemis.api.core.Message
-
toPropertyMap
public java.util.Map<java.lang.String,java.lang.Object> toPropertyMap(int valueSizeLimit)
- Specified by:
toPropertyMapin interfaceorg.apache.activemq.artemis.api.core.Message
-
addAnnotationsAsProperties
protected static void addAnnotationsAsProperties(java.lang.String prefix, java.util.Map map, org.apache.qpid.proton.amqp.messaging.MessageAnnotations annotations)
-
toCore
public org.apache.activemq.artemis.api.core.ICoreMessage toCore(org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools)
- Specified by:
toCorein interfaceorg.apache.activemq.artemis.api.core.Message
-
toCore
public org.apache.activemq.artemis.api.core.ICoreMessage toCore()
- Specified by:
toCorein interfaceorg.apache.activemq.artemis.api.core.Message
-
persist
public abstract void persist(org.apache.activemq.artemis.api.core.ActiveMQBuffer targetRecord)
- Specified by:
persistin interfaceorg.apache.activemq.artemis.api.core.Message
-
getPersistSize
public abstract int getPersistSize()
- Specified by:
getPersistSizein interfaceorg.apache.activemq.artemis.api.core.Message
-
internalPersistSize
protected int internalPersistSize()
-
reloadPersistence
public abstract void reloadPersistence(org.apache.activemq.artemis.api.core.ActiveMQBuffer record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools)- Specified by:
reloadPersistencein interfaceorg.apache.activemq.artemis.api.core.Message
-
lazyScanAfterReloadPersistence
protected void lazyScanAfterReloadPersistence()
-
getPersistentSize
public abstract long getPersistentSize() throws org.apache.activemq.artemis.api.core.ActiveMQException- Specified by:
getPersistentSizein interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQException
-
getPersister
public abstract org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message> getPersister()
- Specified by:
getPersisterin interfaceorg.apache.activemq.artemis.api.core.Message
-
reencode
public abstract void reencode()
- Specified by:
reencodein interfaceorg.apache.activemq.artemis.api.core.Message
-
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
public final org.apache.activemq.artemis.api.core.Message putExtraBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key, byte[] value)- Specified by:
putExtraBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
getExtraBytesProperty
public final byte[] getExtraBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getExtraBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
clearInternalProperties
public void clearInternalProperties()
- Specified by:
clearInternalPropertiesin interfaceorg.apache.activemq.artemis.api.core.Message
-
removeExtraBytesProperty
public final byte[] removeExtraBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
removeExtraBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
setConnectionID
public final org.apache.activemq.artemis.api.core.Message setConnectionID(java.lang.String connectionID)
- Specified by:
setConnectionIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
getConnectionID
public final java.lang.String getConnectionID()
- Specified by:
getConnectionIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
getMessageFormat
public final long getMessageFormat()
-
getMessageID
public final long getMessageID()
- Specified by:
getMessageIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
setMessageID
public final org.apache.activemq.artemis.api.core.Message setMessageID(long id)
- Specified by:
setMessageIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
getExpiration
public final long getExpiration()
- Specified by:
getExpirationin interfaceorg.apache.activemq.artemis.api.core.Message
-
reloadExpiration
public void reloadExpiration(long expiration)
-
setExpiration
public final AMQPMessage setExpiration(long expiration)
- Specified by:
setExpirationin interfaceorg.apache.activemq.artemis.api.core.Message
-
getUserID
public final java.lang.Object getUserID()
- Specified by:
getUserIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
getAMQPUserID
public final java.lang.Object 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
public final org.apache.activemq.artemis.api.core.Message setUserID(java.lang.Object userID)
- Specified by:
setUserIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
getDuplicateProperty
public final java.lang.Object getDuplicateProperty()
- Specified by:
getDuplicatePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
isDurable
public boolean isDurable()
- Specified by:
isDurablein interfaceorg.apache.activemq.artemis.api.core.Message
-
setDurable
public final org.apache.activemq.artemis.api.core.Message setDurable(boolean durable)
- Specified by:
setDurablein interfaceorg.apache.activemq.artemis.api.core.Message
-
getAddress
public final java.lang.String getAddress()
- Specified by:
getAddressin interfaceorg.apache.activemq.artemis.api.core.Message
-
setAddress
public final AMQPMessage setAddress(java.lang.String address)
- Specified by:
setAddressin interfaceorg.apache.activemq.artemis.api.core.Message
-
setAddress
public final AMQPMessage setAddress(org.apache.activemq.artemis.api.core.SimpleString address)
- Specified by:
setAddressin interfaceorg.apache.activemq.artemis.api.core.Message
-
getAddressSimpleString
public final org.apache.activemq.artemis.api.core.SimpleString getAddressSimpleString()
- Specified by:
getAddressSimpleStringin interfaceorg.apache.activemq.artemis.api.core.Message
-
cachedAddressSimpleString
protected org.apache.activemq.artemis.api.core.SimpleString cachedAddressSimpleString(java.lang.String address)
-
getTimestamp
public final long getTimestamp()
- Specified by:
getTimestampin interfaceorg.apache.activemq.artemis.api.core.Message
-
setTimestamp
public final org.apache.activemq.artemis.api.core.Message setTimestamp(long timestamp)
- Specified by:
setTimestampin interfaceorg.apache.activemq.artemis.api.core.Message
-
getPriority
public final byte getPriority()
- Specified by:
getPriorityin interfaceorg.apache.activemq.artemis.api.core.Message
-
setPriority
public final org.apache.activemq.artemis.api.core.Message setPriority(byte priority)
- Specified by:
setPriorityin interfaceorg.apache.activemq.artemis.api.core.Message
-
getReplyTo
public final org.apache.activemq.artemis.api.core.SimpleString getReplyTo()
- Specified by:
getReplyToin interfaceorg.apache.activemq.artemis.api.core.Message
-
setReplyTo
public final AMQPMessage setReplyTo(org.apache.activemq.artemis.api.core.SimpleString address)
- Specified by:
setReplyToin interfaceorg.apache.activemq.artemis.api.core.Message
-
getRoutingType
public final org.apache.activemq.artemis.api.core.RoutingType getRoutingType()
- Specified by:
getRoutingTypein interfaceorg.apache.activemq.artemis.api.core.Message
-
setRoutingType
public final org.apache.activemq.artemis.api.core.Message setRoutingType(org.apache.activemq.artemis.api.core.RoutingType routingType)
- Specified by:
setRoutingTypein interfaceorg.apache.activemq.artemis.api.core.Message
-
getGroupID
public final org.apache.activemq.artemis.api.core.SimpleString getGroupID()
- Specified by:
getGroupIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
getGroupSequence
public final int getGroupSequence()
- Specified by:
getGroupSequencein interfaceorg.apache.activemq.artemis.api.core.Message
-
getCorrelationID
public final java.lang.Object getCorrelationID()
- Specified by:
getCorrelationIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
setCorrelationID
public final org.apache.activemq.artemis.api.core.Message setCorrelationID(java.lang.Object correlationID)
- Specified by:
setCorrelationIDin interfaceorg.apache.activemq.artemis.api.core.Message
-
hasScheduledDeliveryTime
public boolean hasScheduledDeliveryTime()
- Specified by:
hasScheduledDeliveryTimein interfaceorg.apache.activemq.artemis.api.core.Message
-
getScheduledDeliveryTime
public final java.lang.Long getScheduledDeliveryTime()
- Specified by:
getScheduledDeliveryTimein interfaceorg.apache.activemq.artemis.api.core.Message
-
setScheduledDeliveryTime
public final AMQPMessage setScheduledDeliveryTime(java.lang.Long time)
- Specified by:
setScheduledDeliveryTimein interfaceorg.apache.activemq.artemis.api.core.Message
-
removeAnnotation
public final java.lang.Object removeAnnotation(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
removeAnnotationin interfaceorg.apache.activemq.artemis.api.core.Message
-
getAnnotation
public final java.lang.Object getAnnotation(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
getAnnotationin interfaceorg.apache.activemq.artemis.api.core.Message
-
setAnnotation
public final AMQPMessage setAnnotation(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.Object value)
- Specified by:
setAnnotationin interfaceorg.apache.activemq.artemis.api.core.Message
-
setBrokerProperty
public org.apache.activemq.artemis.api.core.Message setBrokerProperty(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.Object value)- Specified by:
setBrokerPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
getBrokerProperty
public java.lang.Object getBrokerProperty(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
getBrokerPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
setIngressTimestamp
public final org.apache.activemq.artemis.api.core.Message setIngressTimestamp()
- Specified by:
setIngressTimestampin interfaceorg.apache.activemq.artemis.api.core.Message
-
getIngressTimestamp
public java.lang.Long getIngressTimestamp()
- Specified by:
getIngressTimestampin interfaceorg.apache.activemq.artemis.api.core.Message
-
removeProperty
public final java.lang.Object removeProperty(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
removePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
removeProperty
public final java.lang.Object removeProperty(java.lang.String key)
- Specified by:
removePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
containsProperty
public final boolean containsProperty(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
containsPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
containsProperty
public final boolean containsProperty(java.lang.String key)
- Specified by:
containsPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
getBooleanProperty
public final java.lang.Boolean getBooleanProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getBooleanPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getByteProperty
public final java.lang.Byte getByteProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getBytePropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getDoubleProperty
public final java.lang.Double getDoubleProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getDoublePropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getIntProperty
public final java.lang.Integer getIntProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getIntPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getLongProperty
public final java.lang.Long getLongProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getLongPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getObjectProperty
public final java.lang.Object getObjectProperty(java.lang.String key)
- Specified by:
getObjectPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
getShortProperty
public final java.lang.Short getShortProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getShortPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getFloatProperty
public final java.lang.Float getFloatProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getFloatPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getStringProperty
public final java.lang.String getStringProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getPropertyNames
public final java.util.Set<org.apache.activemq.artemis.api.core.SimpleString> getPropertyNames()
- Specified by:
getPropertyNamesin interfaceorg.apache.activemq.artemis.api.core.Message
-
getBooleanProperty
public final java.lang.Boolean getBooleanProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getBooleanPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getByteProperty
public final java.lang.Byte getByteProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getBytePropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getBytesProperty
public final byte[] getBytesProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getDoubleProperty
public final java.lang.Double getDoubleProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getDoublePropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getIntProperty
public final java.lang.Integer getIntProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getIntPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getLongProperty
public final java.lang.Long getLongProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getLongPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getObjectProperty
public final java.lang.Object getObjectProperty(org.apache.activemq.artemis.api.core.SimpleString key)
- Specified by:
getObjectPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
getShortProperty
public final java.lang.Short getShortProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getShortPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getFloatProperty
public final java.lang.Float getFloatProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getFloatPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getStringProperty
public final java.lang.String getStringProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getSimpleStringProperty
public final org.apache.activemq.artemis.api.core.SimpleString getSimpleStringProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getSimpleStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getBytesProperty
public final byte[] getBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
getSimpleStringProperty
public final org.apache.activemq.artemis.api.core.SimpleString getSimpleStringProperty(java.lang.String key) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
getSimpleStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
putBooleanProperty
public final org.apache.activemq.artemis.api.core.Message putBooleanProperty(java.lang.String key, boolean value)- Specified by:
putBooleanPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putByteProperty
public final org.apache.activemq.artemis.api.core.Message putByteProperty(java.lang.String key, byte value)- Specified by:
putBytePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putBytesProperty
public final org.apache.activemq.artemis.api.core.Message putBytesProperty(java.lang.String key, byte[] value)- Specified by:
putBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putShortProperty
public final org.apache.activemq.artemis.api.core.Message putShortProperty(java.lang.String key, short value)- Specified by:
putShortPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putCharProperty
public final org.apache.activemq.artemis.api.core.Message putCharProperty(java.lang.String key, char value)- Specified by:
putCharPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putIntProperty
public final org.apache.activemq.artemis.api.core.Message putIntProperty(java.lang.String key, int value)- Specified by:
putIntPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putLongProperty
public final org.apache.activemq.artemis.api.core.Message putLongProperty(java.lang.String key, long value)- Specified by:
putLongPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putFloatProperty
public final org.apache.activemq.artemis.api.core.Message putFloatProperty(java.lang.String key, float value)- Specified by:
putFloatPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putDoubleProperty
public final org.apache.activemq.artemis.api.core.Message putDoubleProperty(java.lang.String key, double value)- Specified by:
putDoublePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putBooleanProperty
public final org.apache.activemq.artemis.api.core.Message putBooleanProperty(org.apache.activemq.artemis.api.core.SimpleString key, boolean value)- Specified by:
putBooleanPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putByteProperty
public final org.apache.activemq.artemis.api.core.Message putByteProperty(org.apache.activemq.artemis.api.core.SimpleString key, byte value)- Specified by:
putBytePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putBytesProperty
public final org.apache.activemq.artemis.api.core.Message putBytesProperty(org.apache.activemq.artemis.api.core.SimpleString key, byte[] value)- Specified by:
putBytesPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putShortProperty
public final org.apache.activemq.artemis.api.core.Message putShortProperty(org.apache.activemq.artemis.api.core.SimpleString key, short value)- Specified by:
putShortPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putCharProperty
public final org.apache.activemq.artemis.api.core.Message putCharProperty(org.apache.activemq.artemis.api.core.SimpleString key, char value)- Specified by:
putCharPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putIntProperty
public final org.apache.activemq.artemis.api.core.Message putIntProperty(org.apache.activemq.artemis.api.core.SimpleString key, int value)- Specified by:
putIntPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putLongProperty
public final org.apache.activemq.artemis.api.core.Message putLongProperty(org.apache.activemq.artemis.api.core.SimpleString key, long value)- Specified by:
putLongPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putFloatProperty
public final org.apache.activemq.artemis.api.core.Message putFloatProperty(org.apache.activemq.artemis.api.core.SimpleString key, float value)- Specified by:
putFloatPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putDoubleProperty
public final org.apache.activemq.artemis.api.core.Message putDoubleProperty(org.apache.activemq.artemis.api.core.SimpleString key, double value)- Specified by:
putDoublePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putStringProperty
public final org.apache.activemq.artemis.api.core.Message putStringProperty(java.lang.String key, java.lang.String value)- Specified by:
putStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putObjectProperty
public final org.apache.activemq.artemis.api.core.Message putObjectProperty(java.lang.String key, java.lang.Object value) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
putObjectPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
putObjectProperty
public final org.apache.activemq.artemis.api.core.Message putObjectProperty(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.Object value) throws org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException- Specified by:
putObjectPropertyin interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
org.apache.activemq.artemis.api.core.ActiveMQPropertyConversionException
-
putStringProperty
public final org.apache.activemq.artemis.api.core.Message putStringProperty(org.apache.activemq.artemis.api.core.SimpleString key, org.apache.activemq.artemis.api.core.SimpleString value)- Specified by:
putStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
putStringProperty
public final org.apache.activemq.artemis.api.core.Message putStringProperty(org.apache.activemq.artemis.api.core.SimpleString key, java.lang.String value)- Specified by:
putStringPropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
getLastValueProperty
public final org.apache.activemq.artemis.api.core.SimpleString getLastValueProperty()
- Specified by:
getLastValuePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
setLastValueProperty
public final org.apache.activemq.artemis.api.core.Message setLastValueProperty(org.apache.activemq.artemis.api.core.SimpleString lastValueName)
- Specified by:
setLastValuePropertyin interfaceorg.apache.activemq.artemis.api.core.Message
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
acceptsConsumer
public final boolean acceptsConsumer(long consumer)
- Specified by:
acceptsConsumerin interfaceorg.apache.activemq.artemis.api.core.Message
-
rejectConsumer
public final void rejectConsumer(long consumer)
- Specified by:
rejectConsumerin interfaceorg.apache.activemq.artemis.api.core.Message
-
getPropertyKeysPool
protected org.apache.activemq.artemis.api.core.SimpleString.StringSimpleStringPool getPropertyKeysPool()
-
getPropertyValuesPool
protected org.apache.activemq.artemis.api.core.SimpleString.StringSimpleStringPool getPropertyValuesPool()
-
getOwner
public java.lang.Object getOwner()
- Specified by:
getOwnerin interfaceorg.apache.activemq.artemis.api.core.Message
-
setOwner
public void setOwner(java.lang.Object object)
- Specified by:
setOwnerin interfaceorg.apache.activemq.artemis.api.core.Message
-
toCompositeData
public javax.management.openmbean.CompositeData toCompositeData(int fieldsLimit, int deliveryCount) throws javax.management.openmbean.OpenDataException- Specified by:
toCompositeDatain interfaceorg.apache.activemq.artemis.api.core.Message- Throws:
javax.management.openmbean.OpenDataException
-
-