Class AMQPStandardMessage
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.RefCountMessage
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPStandardMessage
-
- All Implemented Interfaces:
org.apache.activemq.artemis.api.core.Message
public class AMQPStandardMessage extends AMQPMessage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage
AMQPMessage.MessageDataScanningStatus
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.qpid.proton.codec.ReadableBufferdata-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage
address, ADDRESS_PROPERTY, applicationProperties, applicationPropertiesPosition, connectionID, coreMessageObjectPools, DEFAULT_MESSAGE_FORMAT, DEFAULT_MESSAGE_PRIORITY, deliveryAnnotations, deliveryAnnotationsForSendBuffer, deliveryAnnotationsPosition, encodedDeliveryAnnotationsSize, encodedHeaderSize, expiration, expirationReload, extraProperties, header, headerPosition, logger, MAX_MESSAGE_PRIORITY, memoryEstimate, messageAnnotations, messageAnnotationsPosition, messageDataScanned, messageFormat, messageID, modified, properties, propertiesPosition, rejectedConsumers, remainingBodyPosition, scheduledTime, VALUE_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 Constructor Description AMQPStandardMessage(long messageFormat, byte[] data, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties)Creates a newAMQPStandardMessageinstance from binary encoded message data.AMQPStandardMessage(long messageFormat, byte[] data, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools)Creates a newAMQPStandardMessageinstance from binary encoded message data.AMQPStandardMessage(long messageFormat, org.apache.qpid.proton.codec.ReadableBuffer data, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools)Creates a newAMQPStandardMessageinstance from binary encoded message data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.activemq.artemis.api.core.Messagecopy()org.apache.activemq.artemis.api.core.Messagecopy(long newID)static AMQPStandardMessagecreateMessage(long messageID, long messageFormat, org.apache.activemq.artemis.api.core.SimpleString replyTo, org.apache.qpid.proton.amqp.messaging.Header header, org.apache.qpid.proton.amqp.messaging.Properties properties, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> daMap, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> maMap, java.util.Map<java.lang.String,java.lang.Object> apMap, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> footerMap, org.apache.qpid.proton.amqp.messaging.Section body)protected voidencodeMessage()protected voidensureDataIsValid()protected org.apache.qpid.proton.codec.ReadableBuffergetData()intgetEncodeSize()intgetMemoryEstimate()longgetPersistentSize()org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>getPersister()intgetPersistSize()java.lang.StringgetStringBody()voidpersist(org.apache.activemq.artemis.api.core.ActiveMQBuffer targetRecord)voidreencode()voidreloadPersistence(org.apache.activemq.artemis.api.core.ActiveMQBuffer record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools)java.lang.StringtoString()-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage
acceptsConsumer, addAnnotationsAsProperties, cachedAddressSimpleString, clearInternalProperties, containsProperty, containsProperty, createDeliveryCopy, createExtraProperties, ensureMessageDataScanned, ensureScanning, getAddress, getAddressSimpleString, getAMQPUserID, getAnnotation, getApplicationProperties, getApplicationPropertiesMap, getBody, getBooleanProperty, getBooleanProperty, getBrokerProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getConnectionID, getCorrelationID, getDataScanningStatus, getDecodedApplicationProperties, getDecodedMessageAnnotations, getDeliveryAnnotations, getDeliveryAnnotationsForSendBufferSize, getDoubleProperty, getDoubleProperty, getDuplicateProperty, getEstimateSavedEncode, getExpiration, getExtraBytesProperty, getExtraProperties, getFloatProperty, getFloatProperty, getFooter, getGroupID, getGroupSequence, getHeader, getIngressTimestamp, getIntProperty, getIntProperty, getLastValueProperty, getLongProperty, getLongProperty, getMessageAnnotation, getMessageAnnotation, getMessageAnnotations, getMessageAnnotationsMap, getMessageFormat, getMessageID, getObjectProperty, getObjectProperty, getObjectPropertyForFilter, getOwner, getPriority, getProperties, getPropertyKeysPool, getPropertyNames, getPropertyValuesPool, getProtocolName, getProtonMessage, getReplyTo, getRoutingType, getScheduledDeliveryTime, getSendBuffer, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getUserID, hasScheduledDeliveryTime, internalPersistSize, isDurable, lazyDecodeApplicationProperties, lazyDecodeApplicationProperties, lazyScanAfterReloadPersistence, messageChanged, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putCharProperty, putCharProperty, putDoubleProperty, putDoubleProperty, putExtraBytesProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putStringProperty, receiveBuffer, rejectConsumer, reloadExpiration, removeAnnotation, removeExtraBytesProperty, removeMessageAnnotation, removeProperty, removeProperty, resetMessageData, scanForMessageSection, scanForMessageSection, scanMessageData, scanMessageData, sendBuffer, setAddress, setAddress, setAnnotation, setBrokerProperty, setConnectionID, setCorrelationID, setDeliveryAnnotationsForSendBuffer, setDurable, setExpiration, setExtraProperties, setIngressTimestamp, setLastValueProperty, setMessageAnnotation, setMessageAnnotation, setMessageAnnotations, setMessageID, setOwner, setPriority, setReplyTo, setRoutingType, setScheduledDeliveryTime, setTimestamp, setUserID, toCompositeData, toCore, toCore, toDebugString, toPropertyMap, unmarshalledApplicationPropertiesMemoryEstimateFromData, writeDeliveryAnnotationsForSendBuffer
-
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, durableDown, durableUp, getAnnotationString, getBodyBuffer, getBodyInputStream, getDuplicateIDBytes, getDurableCount, getRefCount, getType, getUsage, getUserContext, getValidatedUserID, getWholeMessageSize, isExpired, isLargeMessage, refDown, referenceOriginalMessage, refUp, setGroupID, setGroupID, setGroupSequence, setType, setUserContext, setValidatedUserID, toMap, toMap, toPropertyMap, usageDown, usageUp
-
-
-
-
Constructor Detail
-
AMQPStandardMessage
public AMQPStandardMessage(long messageFormat, byte[] data, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties)Creates a newAMQPStandardMessageinstance from binary encoded message data.- Parameters:
messageFormat- The Message format tag given the in Transfer that carried this messagedata- The encoded AMQP messageextraProperties- Broker specific extra properties that should be carried with this message
-
AMQPStandardMessage
public AMQPStandardMessage(long messageFormat, byte[] data, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools)Creates a newAMQPStandardMessageinstance from binary encoded message data.- Parameters:
messageFormat- The Message format tag given the in Transfer that carried this messagedata- The encoded AMQP messageextraProperties- Broker specific extra properties that should be carried with this messagecoreMessageObjectPools- Object pool used to accelerate some String operations.
-
AMQPStandardMessage
public AMQPStandardMessage(long messageFormat, org.apache.qpid.proton.codec.ReadableBuffer data, org.apache.activemq.artemis.utils.collections.TypedProperties extraProperties, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools coreMessageObjectPools)Creates a newAMQPStandardMessageinstance from binary encoded message data.- Parameters:
messageFormat- The Message format tag given the in Transfer that carried this messagedata- The encoded AMQP message in anReadableBufferwrapper.extraProperties- Broker specific extra properties that should be carried with this messagecoreMessageObjectPools- Object pool used to accelerate some String operations.
-
-
Method Detail
-
createMessage
public static AMQPStandardMessage createMessage(long messageID, long messageFormat, org.apache.activemq.artemis.api.core.SimpleString replyTo, org.apache.qpid.proton.amqp.messaging.Header header, org.apache.qpid.proton.amqp.messaging.Properties properties, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> daMap, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> maMap, java.util.Map<java.lang.String,java.lang.Object> apMap, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> footerMap, org.apache.qpid.proton.amqp.messaging.Section body)
-
copy
public org.apache.activemq.artemis.api.core.Message copy()
- Specified by:
copyin interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
copyin classAMQPMessage
-
getEncodeSize
public int getEncodeSize()
- Specified by:
getEncodeSizein interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
getEncodeSizein classAMQPMessage
-
getData
protected org.apache.qpid.proton.codec.ReadableBuffer getData()
- Specified by:
getDatain classAMQPMessage
-
getMemoryEstimate
public int getMemoryEstimate()
- Specified by:
getMemoryEstimatein interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
getMemoryEstimatein classAMQPMessage
-
persist
public void persist(org.apache.activemq.artemis.api.core.ActiveMQBuffer targetRecord)
- Specified by:
persistin interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
persistin classAMQPMessage
-
copy
public final org.apache.activemq.artemis.api.core.Message copy(long newID)
-
getPersistSize
public int getPersistSize()
- Specified by:
getPersistSizein interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
getPersistSizein classAMQPMessage
-
reloadPersistence
public 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- Specified by:
reloadPersistencein classAMQPMessage
-
getPersistentSize
public long getPersistentSize() throws org.apache.activemq.artemis.api.core.ActiveMQException- Specified by:
getPersistentSizein interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
getPersistentSizein classAMQPMessage- Throws:
org.apache.activemq.artemis.api.core.ActiveMQException
-
getPersister
public 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- Specified by:
getPersisterin classAMQPMessage
-
reencode
public void reencode()
- Specified by:
reencodein interfaceorg.apache.activemq.artemis.api.core.Message- Specified by:
reencodein classAMQPMessage
-
ensureDataIsValid
protected void ensureDataIsValid()
- Specified by:
ensureDataIsValidin classAMQPMessage
-
encodeMessage
protected void encodeMessage()
- Specified by:
encodeMessagein classAMQPMessage
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAMQPMessage
-
getStringBody
public java.lang.String getStringBody()
-
-