Class CoreMessage
- All Implemented Interfaces:
ICoreMessage,Message
- Direct Known Subclasses:
ClientMessageImpl,LargeServerMessageImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SimpleStringstatic final intprotected io.netty.buffer.ByteBufThat is the readInto for the whole message, including properties.static final intprotected booleanprotected intprotected intprotected longprotected intprotected booleanprotected byteprotected TypedPropertiesprotected longprotected byteprotected ResetLimitWrappedActiveMQBufferFields inherited from interface org.apache.activemq.artemis.api.core.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
ConstructorsModifierConstructorDescriptionCoreMessage(long id, int bufferSize) CoreMessage(long id, int bufferSize, CoreMessageObjectPools coreMessageObjectPools) protectedCoreMessage(CoreMessage other) protectedCoreMessage(CoreMessage other, TypedProperties copyProperties) CoreMessage(CoreMessageObjectPools coreMessageObjectPools) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidvoidbooleancontainsProperty(String key) booleancopy()It will generate a new instance of the message encode, being a deep copy, new properties, new everythingcopy(long newID) It will generate a new instance of the message encode, being a deep copy, new properties, new everythingvoiddecodeHeadersAndProperties(io.netty.buffer.ByteBuf buffer) encode()voidencodeHeadersAndProperties(io.netty.buffer.ByteBuf buffer) On core there's no delivery annotationThe buffer to write the body.intReturns the length in bytes of the body buffer.getBooleanProperty(String key) io.netty.buffer.ByteBufgetByteProperty(String key) byte[]getBytesProperty(String key) byte[]This will return the proper buffer to represent the data of the Message.getDoubleProperty(String key) intReturns the size of the encoded message.intlongReturns the expiration time of this message.getFloatProperty(String key) intintgetIntProperty(String key) getLongProperty(String key) intlongReturns the messageID; the messageID is set when the message is handled by the server.getObjectProperty(String key) getOwner()longThis is the size of the message when persisted on disk which is used for metrics tracking Note that even if the message itself is not persisted on disk (ie non-durable) this value is still used for metrics tracking If a normal message it will be the encoded message size If a large message it will be encoded message size + large message body sizeintbyteReturns the message priority; values range from 0 (less priority) to 9 (more priority) inclusive.final TypedPropertiesI am keeping this synchronized as the decode of the Properties is lazyReturns all the names of the properties for this message.Returns a new Buffer slicing the current Body.Used to calculate what is the delivery time.getShortProperty(String key) getStringProperty(String key) longbytegetType()This represents historically the JMSMessageID.booleanSearch for the existence of the property: an implementor can save the message to be decoded, if possible.initBuffer(int initialMessageBufferSize) protected voidinternalSetMessageID(long messageID) This method serves as a purpose of extension.booleanReturns whether this message is durable or not.booleanbooleanisPaged()booleanWe are really interested if this is a LargeServerMessage.voidWARNING: Calling this method on a AMQPMessage will allow the non mutable part of the message to be modified.voidUsed on large messages treatment. this method is used to transfer properties from a temporary CoreMessage to a definitive one.voidpersist(ActiveMQBuffer targetRecord) putBooleanProperty(String key, boolean value) Callers must callMessage.reencode()in order to be sent to clientsputBooleanProperty(SimpleString key, boolean value) Callers must callMessage.reencode()in order to be sent to clientsputByteProperty(String key, byte value) Callers must callMessage.reencode()in order to be sent to clientsputByteProperty(SimpleString key, byte value) Callers must callMessage.reencode()in order to be sent to clientsputBytesProperty(String key, byte[] value) Callers must callMessage.reencode()in order to be sent to clientsputBytesProperty(SimpleString key, byte[] value) Callers must callMessage.reencode()in order to be sent to clientsputCharProperty(String key, char value) Callers must callMessage.reencode()in order to be sent to clientsputCharProperty(SimpleString key, char value) Callers must callMessage.reencode()in order to be sent to clientsputDoubleProperty(String key, double value) Callers must callMessage.reencode()in order to be sent to clientsputDoubleProperty(SimpleString key, double value) Callers must callMessage.reencode()in order to be sent to clientsputFloatProperty(String key, float value) Callers must callMessage.reencode()in order to be sent to clientsputFloatProperty(SimpleString key, float value) Callers must callMessage.reencode()in order to be sent to clientsputIntProperty(String key, int value) Callers must callMessage.reencode()in order to be sent to clientsputIntProperty(SimpleString key, int value) Callers must callMessage.reencode()in order to be sent to clientsputLongProperty(String key, long value) Callers must callMessage.reencode()in order to be sent to clientsputLongProperty(SimpleString key, long value) Callers must callMessage.reencode()in order to be sent to clientsputObjectProperty(String key, Object value) Callers must callMessage.reencode()in order to be sent to clientsputObjectProperty(SimpleString key, Object value) Callers must callMessage.reencode()in order to be sent to clientsputShortProperty(String key, short value) Callers must callMessage.reencode()in order to be sent to clientsputShortProperty(SimpleString key, short value) Callers must callMessage.reencode()in order to be sent to clientsputStringProperty(String key, String value) Puts a String property in this message.putStringProperty(SimpleString key, String value) putStringProperty(SimpleString key, SimpleString value) voidreceiveBuffer(io.netty.buffer.ByteBuf buffer) Used to receive this message from an encoded medium buffervoidreceiveBuffer_1X(io.netty.buffer.ByteBuf buffer) This will fix the incoming body of 1.x messagesvoidreloadPersistence(ActiveMQBuffer record, CoreMessageObjectPools pools) On core there's no delivery annotationremoveProperty(String key) booleanDifferently fromcontainsProperty(SimpleString), this method can save decoding the message, performing a search of thekeyproperty and falling back tocontainsProperty(SimpleString)if not possible or if already decoded.voidsendBuffer(io.netty.buffer.ByteBuf sendBuffer, int deliveryCount) Used to send this message to an encoded medium buffer.voidsendBuffer_1X(io.netty.buffer.ByteBuf sendBuffer) Recast the message as an 1.4 messagesetAddress(String address) Look atMessage.setAddress(SimpleString)for the doc.setAddress(SimpleString address) This will set the address on CoreMessage.setBuffer(io.netty.buffer.ByteBuf buffer) The buffer will belong to this message, until release is called.setCorrelationID(Object correlationID) setDurable(boolean durable) Sets whether this message is durable or not.setExpiration(long expiration) Sets the expiration of this message.setGroupID(String groupId) setGroupID(SimpleString groupId) setGroupSequence(int sequence) setLastValueProperty(SimpleString lastValueName) setMessageID(long messageID) voidvoidsetPaged()setPriority(byte priority) Sets the message priority.setReplyTo(SimpleString address) setRoutingType(RoutingType routingType) setScheduledDeliveryTime(Long time) setTimestamp(long timestamp) setType(byte type) setValidatedUserID(String validatedUserID) toCompositeData(int fieldsLimit, int deliveryCount) toCore()This should make you convert your message into Core format.toCore(CoreMessageObjectPools coreMessageObjectPools) This should make you convert your message into Core format.toString()Methods inherited from class org.apache.activemq.artemis.api.core.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.api.core.ICoreMessage
isConfirmed, setConfirmed, toMapMethods inherited from interface org.apache.activemq.artemis.api.core.Message
acceptsConsumer, copy, durableDown, durableUp, getAnnotationString, getBrokerProperty, getConnectionID, getDuplicateIDBytes, getDurableCount, getExtraBytesProperty, getIngressTimestamp, getObjectPropertyForFilter, getOriginalEstimate, getRefCount, getUsage, getUserContext, getWholeMessageSize, isExpired, putExtraBytesProperty, reencode, refDown, referenceOriginalMessage, refUp, rejectConsumer, removeExtraBytesProperty, routed, setAnnotation, setBrokerProperty, setConnectionID, setIngressTimestamp, setUserContext, toMap, toPropertyMap, toPropertyMap, usageDown, usageUp
-
Field Details
-
BUFFER_HEADER_SPACE
public static final int BUFFER_HEADER_SPACE- See Also:
-
memoryEstimate
protected volatile int memoryEstimate -
BODY_OFFSET
public static final int BODY_OFFSET- See Also:
-
buffer
protected io.netty.buffer.ByteBuf bufferThat is the readInto for the whole message, including properties. It does not include the buffer for the Packet send and receive header on core protocol -
writableBuffer
-
endOfBodyPosition
protected int endOfBodyPosition -
messageIDPosition
protected int messageIDPosition -
messageID
protected long messageID -
address
-
type
protected byte type -
durable
protected boolean durable -
paged
protected boolean paged -
timestamp
protected long timestamp -
priority
protected byte priority -
properties
-
-
Constructor Details
-
CoreMessage
-
CoreMessage
public CoreMessage() -
CoreMessage
-
CoreMessage
public CoreMessage(long id, int bufferSize) -
CoreMessage
-
CoreMessage
-
-
Method Details
-
setPaged
public void setPaged() -
isPaged
public boolean isPaged() -
getProtocolName
- Specified by:
getProtocolNamein interfaceMessage
-
getAnnotation
On core there's no delivery annotation- Specified by:
getAnnotationin interfaceMessage
-
removeAnnotation
On core there's no delivery annotation- Specified by:
removeAnnotationin interfaceMessage
-
clearInternalProperties
public void clearInternalProperties()- Specified by:
clearInternalPropertiesin interfaceMessage
-
clearAMQPProperties
public void clearAMQPProperties()- Specified by:
clearAMQPPropertiesin interfaceMessage
-
getPersister
- Specified by:
getPersisterin interfaceMessage
-
initBuffer
-
getReplyTo
- Specified by:
getReplyToin interfaceMessage
-
getRoutingType
- Specified by:
getRoutingTypein interfaceMessage
-
setRoutingType
- Specified by:
setRoutingTypein interfaceMessage
-
setReplyTo
- Specified by:
setReplyToin interfaceMessage
-
receiveBuffer
public void receiveBuffer(io.netty.buffer.ByteBuf buffer) Description copied from interface:MessageUsed to receive this message from an encoded medium buffer- Specified by:
receiveBufferin interfaceMessage
-
receiveBuffer_1X
public void receiveBuffer_1X(io.netty.buffer.ByteBuf buffer) This will fix the incoming body of 1.x messages- Specified by:
receiveBuffer_1Xin interfaceICoreMessage
-
getReadOnlyBodyBuffer
Description copied from interface:ICoreMessageReturns a new Buffer slicing the current Body.- Specified by:
getReadOnlyBodyBufferin interfaceICoreMessage- Returns:
- a new Buffer slicing the current Body
-
getBodyBufferSize
public int getBodyBufferSize()Description copied from interface:ICoreMessageReturns the length in bytes of the body buffer.- Specified by:
getBodyBufferSizein interfaceICoreMessage- Returns:
- the length in bytes of the body buffer
-
getDataBuffer
This will return the proper buffer to represent the data of the Message. If compressed it will decompress. If large, it will read from the file or streaming.- Specified by:
getDataBufferin interfaceICoreMessage- Returns:
- a readOnlyBodyBuffer or a decompressed one if the message is compressed or the large message buffer
-
getGroupID
- Specified by:
getGroupIDin interfaceMessage
-
setGroupID
- Specified by:
setGroupIDin interfaceMessage
-
setGroupID
- Specified by:
setGroupIDin interfaceMessage
-
getGroupSequence
public int getGroupSequence()- Specified by:
getGroupSequencein interfaceMessage
-
setGroupSequence
- Specified by:
setGroupSequencein interfaceMessage
-
getCorrelationID
- Specified by:
getCorrelationIDin interfaceMessage
-
setCorrelationID
- Specified by:
setCorrelationIDin interfaceMessage
-
sendBuffer
public void sendBuffer(io.netty.buffer.ByteBuf sendBuffer, int deliveryCount) Description copied from interface:MessageUsed to send this message to an encoded medium buffer.- Specified by:
sendBufferin interfaceMessage- Parameters:
deliveryCount- Some protocols (AMQP) will have this as part of the message. ignored on coresendBuffer- the buffer used.
-
sendBuffer_1X
public void sendBuffer_1X(io.netty.buffer.ByteBuf sendBuffer) Recast the message as an 1.4 message- Specified by:
sendBuffer_1Xin interfaceICoreMessage
-
checkEncode
protected void checkEncode() -
getScheduledDeliveryTime
Description copied from interface:MessageUsed to calculate what is the delivery time. Return null if not scheduled.- Specified by:
getScheduledDeliveryTimein interfaceMessage
-
setScheduledDeliveryTime
- Specified by:
setScheduledDeliveryTimein interfaceMessage
-
getBodyInputStream
- Specified by:
getBodyInputStreamin interfaceICoreMessage- Specified by:
getBodyInputStreamin interfaceMessage
-
getBodyBuffer
The buffer to write the body. Warning: If you just want to read the content of a message, useICoreMessage.getDataBuffer()orICoreMessage.getReadOnlyBodyBuffer()- Specified by:
getBodyBufferin interfaceICoreMessage- Specified by:
getBodyBufferin interfaceMessage
-
getEndOfBodyPosition
public int getEndOfBodyPosition()- Specified by:
getEndOfBodyPositionin interfaceICoreMessage
-
messageChanged
public void messageChanged()Description copied from interface:MessageWARNING: Calling this method on a AMQPMessage will allow the non mutable part of the message to be modified.- Specified by:
messageChangedin interfaceMessage
-
internalSetMessageID
protected void internalSetMessageID(long messageID) This method serves as a purpose of extension. Large Message on a Core Message will have to set the messageID on the attached NewLargeMessage -
moveHeadersAndProperties
Description copied from interface:ICoreMessageUsed on large messages treatment. this method is used to transfer properties from a temporary CoreMessage to a definitive one. This is used when before a Message was defined as a LargeMessages, its properties are then moved from the Temporary message to its final LargeMessage object.Be careful as this will not perform a copy of the Properties. For real copy, use the copy methods or copy constructors.
- Specified by:
moveHeadersAndPropertiesin interfaceICoreMessage
-
copy
Description copied from interface:MessageIt will generate a new instance of the message encode, being a deep copy, new properties, new everything -
copy
Description copied from interface:MessageIt will generate a new instance of the message encode, being a deep copy, new properties, new everything -
getExpiration
public long getExpiration()Description copied from interface:MessageReturns the expiration time of this message.- Specified by:
getExpirationin interfaceMessage- Returns:
- the expiration time of this message
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestampin interfaceMessage
-
setTimestamp
- Specified by:
setTimestampin interfaceMessage
-
getMessageID
public long getMessageID()Description copied from interface:MessageReturns the messageID; the messageID is set when the message is handled by the server.- Specified by:
getMessageIDin interfaceMessage- Returns:
- the messageID; the messageID is set when the message is handled by the server
-
getPriority
public byte getPriority()Description copied from interface:MessageReturns the message priority; values range from 0 (less priority) to 9 (more priority) inclusive.- Specified by:
getPriorityin interfaceMessage- Returns:
- the message priority; values range from 0 (less priority) to 9 (more priority) inclusive
-
getUserID
Description copied from interface:MessageThis represents historically the JMSMessageID. We had in the past used this for the MessageID that was sent on core messages...later on when we added AMQP this name clashed with AMQPMessage.getUserID();
-
setUserID
-
getValidatedUserID
- Specified by:
getValidatedUserIDin interfaceMessage
-
setValidatedUserID
- Specified by:
setValidatedUserIDin interfaceMessage
-
setMessageID
- Specified by:
setMessageIDin interfaceMessage
-
setAddress
Description copied from interface:MessageThis will set the address on CoreMessage.Note for AMQPMessages: in AMQPMessages this will not really change the address on the message. Instead it will add a property on extraProperties which only transverse internally at the broker. Whatever you change here it won't affect anything towards the received message.
If you wish to change AMQPMessages address you will have to do it directly at the AMQP Message, however beware that AMQPMessages are not supposed to be changed at the broker, so only do it if you know what you are doing.
- Specified by:
setAddressin interfaceMessage
-
getAddressSimpleString
- Specified by:
getAddressSimpleStringin interfaceMessage
-
setExpiration
Description copied from interface:MessageSets the expiration of this message.- Specified by:
setExpirationin interfaceMessage- Parameters:
expiration- expiration time
-
setPriority
Description copied from interface:MessageSets the message priority.Value must be between 0 and 9 inclusive.
- Specified by:
setPriorityin interfaceMessage- Parameters:
priority- the new message priority
-
setUserID
-
getProperties
I am keeping this synchronized as the decode of the Properties is lazy -
getMemoryEstimate
public int getMemoryEstimate()- Specified by:
getMemoryEstimatein interfaceMessage
-
isServerMessage
public boolean isServerMessage()Description copied from interface:ICoreMessageWe are really interested if this is a LargeServerMessage.- Specified by:
isServerMessagein interfaceICoreMessage
-
getType
public byte getType()- Specified by:
getTypein interfaceICoreMessage- Specified by:
getTypein interfaceMessage
-
setType
- Specified by:
setTypein interfaceICoreMessage- Specified by:
setTypein interfaceMessage
-
decodeHeadersAndProperties
public void decodeHeadersAndProperties(io.netty.buffer.ByteBuf buffer) -
encode
-
encodeHeadersAndProperties
public void encodeHeadersAndProperties(io.netty.buffer.ByteBuf buffer) -
getHeadersAndPropertiesEncodeSize
public int getHeadersAndPropertiesEncodeSize()- Specified by:
getHeadersAndPropertiesEncodeSizein interfaceICoreMessage
-
getDuplicateProperty
- Specified by:
getDuplicatePropertyin interfaceMessage
-
getLastValueProperty
- Specified by:
getLastValuePropertyin interfaceMessage
-
setLastValueProperty
- Specified by:
setLastValuePropertyin interfaceMessage
-
getEncodeSize
public int getEncodeSize()Description copied from interface:MessageReturns the size of the encoded message.- Specified by:
getEncodeSizein interfaceMessage- Returns:
- the size of the encoded message
-
isLargeMessage
public boolean isLargeMessage()- Specified by:
isLargeMessagein interfaceMessage
-
getAddress
- Specified by:
getAddressin interfaceMessage
-
setAddress
Description copied from interface:MessageLook atMessage.setAddress(SimpleString)for the doc.- Specified by:
setAddressin interfaceMessage
-
setBuffer
Description copied from interface:ICoreMessageThe buffer will belong to this message, until release is called.- Specified by:
setBufferin interfaceICoreMessage
-
getBuffer
public io.netty.buffer.ByteBuf getBuffer()- Specified by:
getBufferin interfaceICoreMessage
-
isDurable
public boolean isDurable()Description copied from interface:MessageReturns whether this message is durable or not. -
setDurable
Description copied from interface:MessageSets whether this message is durable or not.- Specified by:
setDurablein interfaceMessage- Parameters:
durable-trueto flag this message as durable,falseelse
-
putBooleanProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putBooleanPropertyin interfaceMessage
-
putBooleanProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putBooleanPropertyin interfaceMessage
-
getBooleanProperty
- Specified by:
getBooleanPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getBooleanProperty
- Specified by:
getBooleanPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putByteProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putBytePropertyin interfaceMessage
-
putByteProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putBytePropertyin interfaceMessage
-
getByteProperty
- Specified by:
getBytePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getByteProperty
- Specified by:
getBytePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putBytesProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putBytesPropertyin interfaceMessage
-
putBytesProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putBytesPropertyin interfaceMessage
-
getBytesProperty
- Specified by:
getBytesPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getBytesProperty
- Specified by:
getBytesPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putCharProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putCharPropertyin interfaceMessage
-
putCharProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putCharPropertyin interfaceMessage
-
putShortProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putShortPropertyin interfaceMessage
-
putShortProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putShortPropertyin interfaceMessage
-
putIntProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putIntPropertyin interfaceMessage
-
putIntProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putIntPropertyin interfaceMessage
-
getIntProperty
- Specified by:
getIntPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getIntProperty
- Specified by:
getIntPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putLongProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putLongPropertyin interfaceMessage
-
putLongProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putLongPropertyin interfaceMessage
-
getLongProperty
- Specified by:
getLongPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getLongProperty
- Specified by:
getLongPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putFloatProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putFloatPropertyin interfaceMessage
-
putFloatProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putFloatPropertyin interfaceMessage
-
putDoubleProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putDoublePropertyin interfaceMessage
-
putDoubleProperty
Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putDoublePropertyin interfaceMessage
-
getDoubleProperty
- Specified by:
getDoublePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getDoubleProperty
- Specified by:
getDoublePropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
putStringProperty
- Specified by:
putStringPropertyin interfaceMessage
-
putStringProperty
- Specified by:
putStringPropertyin interfaceMessage
-
putStringProperty
Description copied from interface:MessagePuts a String property in this message.Callers must call
Message.reencode()in order to be sent to clients- Specified by:
putStringPropertyin interfaceMessage- Parameters:
key- property namevalue- property value
-
putObjectProperty
public CoreMessage putObjectProperty(SimpleString key, Object value) throws ActiveMQPropertyConversionException Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putObjectPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getObjectProperty
- Specified by:
getObjectPropertyin interfaceMessage
-
getObjectProperty
- Specified by:
getObjectPropertyin interfaceMessage
-
putObjectProperty
public CoreMessage putObjectProperty(String key, Object value) throws ActiveMQPropertyConversionException Description copied from interface:MessageCallers must callMessage.reencode()in order to be sent to clients- Specified by:
putObjectPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getShortProperty
- Specified by:
getShortPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getShortProperty
- Specified by:
getShortPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getFloatProperty
- Specified by:
getFloatPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getFloatProperty
- Specified by:
getFloatPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getStringProperty
- Specified by:
getStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getStringProperty
- Specified by:
getStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getSimpleStringProperty
public SimpleString getSimpleStringProperty(SimpleString key) throws ActiveMQPropertyConversionException - Specified by:
getSimpleStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
getSimpleStringProperty
- Specified by:
getSimpleStringPropertyin interfaceMessage- Throws:
ActiveMQPropertyConversionException
-
removeProperty
- Specified by:
removePropertyin interfaceMessage
-
removeProperty
- Specified by:
removePropertyin interfaceMessage
-
hasScheduledDeliveryTime
public boolean hasScheduledDeliveryTime()Description copied from interface:MessageSearch for the existence of the property: an implementor can save the message to be decoded, if possible.- Specified by:
hasScheduledDeliveryTimein interfaceMessage
-
searchProperty
Differently fromcontainsProperty(SimpleString), this method can save decoding the message, performing a search of thekeyproperty and falling back tocontainsProperty(SimpleString)if not possible or if already decoded. -
containsProperty
- Specified by:
containsPropertyin interfaceMessage
-
containsProperty
- Specified by:
containsPropertyin interfaceMessage
-
getPropertyNames
Description copied from interface:MessageReturns all the names of the properties for this message.- Specified by:
getPropertyNamesin interfaceMessage- Returns:
- all the names of the properties for this message
-
getLargeBodyReader
- Specified by:
getLargeBodyReaderin interfaceICoreMessage- Throws:
ActiveMQException
-
getPersistSize
public int getPersistSize()- Specified by:
getPersistSizein interfaceMessage
-
persist
-
reloadPersistence
- Specified by:
reloadPersistencein interfaceMessage
-
toCore
Description copied from interface:MessageThis should make you convert your message into Core format. -
toCore
Description copied from interface:MessageThis should make you convert your message into Core format. -
toString
-
getPersistentSize
Description copied from interface:MessageThis is the size of the message when persisted on disk which is used for metrics tracking Note that even if the message itself is not persisted on disk (ie non-durable) this value is still used for metrics tracking If a normal message it will be the encoded message size If a large message it will be encoded message size + large message body size- Specified by:
getPersistentSizein interfaceMessage- Throws:
ActiveMQException
-
getOwner
-
setOwner
-
getStringBody
- Specified by:
getStringBodyin interfaceMessage
-
toCompositeData
- Specified by:
toCompositeDatain interfaceMessage- Throws:
OpenDataException
-