@Deprecated public class MessageInternalImpl extends Object implements MessageInternal
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_LARGE_BODY_SIZE, HDR_LARGE_COMPRESSED, HDR_LAST_VALUE_NAME, HDR_ORIG_MESSAGE_ID, 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, MAP_TYPE, memoryOffset, OBJECT_TYPE, STREAM_TYPE, TEXT_TYPE| Constructor and Description |
|---|
MessageInternalImpl(ICoreMessage message)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bodyChanged()
Deprecated.
|
boolean |
containsProperty(SimpleString key)
Deprecated.
|
boolean |
containsProperty(String key)
Deprecated.
|
Message |
copy()
Deprecated.
It will generate a new instance of the message encode, being a deep copy, new properties, new everything
|
Message |
copy(long newID)
Deprecated.
It will generate a new instance of the message encode, being a deep copy, new properties, new everything
|
void |
decodeFromBuffer(ActiveMQBuffer buffer)
Deprecated.
|
void |
decodeHeadersAndProperties(ActiveMQBuffer buffer)
Deprecated.
|
int |
decrementDurableRefCount()
Deprecated.
|
int |
decrementRefCount()
Deprecated.
|
void |
encodeHeadersAndProperties(ActiveMQBuffer buffer)
Deprecated.
|
String |
getAddress()
Deprecated.
|
SimpleString |
getAddressSimpleString()
Deprecated.
|
Object |
getAnnotation(SimpleString key)
Deprecated.
|
BodyEncoder |
getBodyEncoder()
Deprecated.
|
InputStream |
getBodyInputStream()
Deprecated.
|
Boolean |
getBooleanProperty(SimpleString key)
Deprecated.
|
Boolean |
getBooleanProperty(String key)
Deprecated.
|
io.netty.buffer.ByteBuf |
getBuffer()
Deprecated.
|
Byte |
getByteProperty(SimpleString key)
Deprecated.
|
Byte |
getByteProperty(String key)
Deprecated.
|
byte[] |
getBytesProperty(SimpleString key)
Deprecated.
|
byte[] |
getBytesProperty(String key)
Deprecated.
|
RefCountMessageListener |
getContext()
Deprecated.
Context can be used by the application server to inject extra control, like a protocol specific on the server.
|
Double |
getDoubleProperty(SimpleString key)
Deprecated.
|
Double |
getDoubleProperty(String key)
Deprecated.
|
ActiveMQBuffer |
getEncodedBuffer()
Deprecated.
|
int |
getEncodeSize()
Deprecated.
Returns the size of the encoded message.
|
int |
getEndOfBodyPosition()
Deprecated.
|
int |
getEndOfMessagePosition()
Deprecated.
|
long |
getExpiration()
Deprecated.
Returns the expiration time of this message.
|
Float |
getFloatProperty(SimpleString key)
Deprecated.
|
Float |
getFloatProperty(String key)
Deprecated.
|
int |
getHeadersAndPropertiesEncodeSize()
Deprecated.
|
Integer |
getIntProperty(SimpleString key)
Deprecated.
|
Integer |
getIntProperty(String key)
Deprecated.
|
Long |
getLongProperty(SimpleString key)
Deprecated.
|
Long |
getLongProperty(String key)
Deprecated.
|
int |
getMemoryEstimate()
Deprecated.
|
long |
getMessageID()
Deprecated.
Returns the messageID.
|
Object |
getObjectProperty(SimpleString key)
Deprecated.
|
Object |
getObjectProperty(String key)
Deprecated.
|
long |
getPersistentSize()
Deprecated.
This 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
|
Persister<Message> |
getPersister()
Deprecated.
|
int |
getPersistSize()
Deprecated.
|
byte |
getPriority()
Deprecated.
Returns the message priority.
|
Set<SimpleString> |
getPropertyNames()
Deprecated.
Returns all the names of the properties for this message.
|
int |
getRefCount()
Deprecated.
|
SimpleString |
getReplyTo()
Deprecated.
|
Long |
getScheduledDeliveryTime()
Deprecated.
Used to calculate what is the delivery time.
|
Short |
getShortProperty(SimpleString key)
Deprecated.
|
Short |
getShortProperty(String key)
Deprecated.
|
SimpleString |
getSimpleStringProperty(SimpleString key)
Deprecated.
|
SimpleString |
getSimpleStringProperty(String key)
Deprecated.
|
String |
getStringProperty(SimpleString key)
Deprecated.
|
String |
getStringProperty(String key)
Deprecated.
|
long |
getTimestamp()
Deprecated.
|
TypedProperties |
getTypedProperties()
Deprecated.
|
Object |
getUserID()
Deprecated.
This represents historically the JMSMessageID.
|
ActiveMQBuffer |
getWholeBuffer()
Deprecated.
|
int |
incrementDurableRefCount()
Deprecated.
|
int |
incrementRefCount()
Deprecated.
|
boolean |
isDurable()
Deprecated.
Returns whether this message is durable or not.
|
boolean |
isServerMessage()
Deprecated.
|
void |
messageChanged()
Deprecated.
|
void |
persist(ActiveMQBuffer targetRecord)
Deprecated.
|
Message |
putBooleanProperty(SimpleString key,
boolean value)
Deprecated.
|
Message |
putBooleanProperty(String key,
boolean value)
Deprecated.
|
Message |
putByteProperty(SimpleString key,
byte value)
Deprecated.
|
Message |
putByteProperty(String key,
byte value)
Deprecated.
|
Message |
putBytesProperty(SimpleString key,
byte[] value)
Deprecated.
|
Message |
putBytesProperty(String key,
byte[] value)
Deprecated.
|
Message |
putCharProperty(SimpleString key,
char value)
Deprecated.
|
Message |
putCharProperty(String key,
char value)
Deprecated.
|
Message |
putDoubleProperty(SimpleString key,
double value)
Deprecated.
|
Message |
putDoubleProperty(String key,
double value)
Deprecated.
|
Message |
putFloatProperty(SimpleString key,
float value)
Deprecated.
|
Message |
putFloatProperty(String key,
float value)
Deprecated.
|
Message |
putIntProperty(SimpleString key,
int value)
Deprecated.
|
Message |
putIntProperty(String key,
int value)
Deprecated.
|
Message |
putLongProperty(SimpleString key,
long value)
Deprecated.
|
Message |
putLongProperty(String key,
long value)
Deprecated.
|
Message |
putObjectProperty(SimpleString key,
Object value)
Deprecated.
|
Message |
putObjectProperty(String key,
Object value)
Deprecated.
|
Message |
putShortProperty(SimpleString key,
short value)
Deprecated.
|
Message |
putShortProperty(String key,
short value)
Deprecated.
|
Message |
putStringProperty(SimpleString key,
SimpleString value)
Deprecated.
|
Message |
putStringProperty(SimpleString key,
String value)
Deprecated.
|
Message |
putStringProperty(String key,
String value)
Deprecated.
Puts a String property in this message.
|
void |
receiveBuffer(io.netty.buffer.ByteBuf buffer)
Deprecated.
Used to receive this message from an encoded medium buffer
|
void |
reloadPersistence(ActiveMQBuffer record)
Deprecated.
|
Object |
removeProperty(SimpleString key)
Deprecated.
|
Object |
removeProperty(String key)
Deprecated.
|
void |
sendBuffer(io.netty.buffer.ByteBuf buffer,
int deliveryCount)
Deprecated.
Used to send this message to an encoded medium buffer.
|
Message |
setAddress(SimpleString address)
Deprecated.
This will set the address on CoreMessage.
|
Message |
setAddress(String address)
Deprecated.
Look at
Message.setAddress(SimpleString) for the doc. |
void |
setAddressTransient(SimpleString address)
Deprecated.
|
Message |
setBuffer(io.netty.buffer.ByteBuf buffer)
Deprecated.
The buffer will belong to this message, until release is called.
|
Message |
setContext(RefCountMessageListener context)
Deprecated.
|
Message |
setDurable(boolean durable)
Deprecated.
Sets whether this message is durable or not.
|
Message |
setExpiration(long expiration)
Deprecated.
Sets the expiration of this message.
|
Message |
setMessageID(long id)
Deprecated.
|
Message |
setPriority(byte priority)
Deprecated.
Sets the message priority.
|
Message |
setReplyTo(SimpleString address)
Deprecated.
|
Message |
setTimestamp(long timestamp)
Deprecated.
|
Message |
setUserID(Object userID)
Deprecated.
|
ICoreMessage |
toCore()
Deprecated.
This should make you convert your message into Core format.
|
ICoreMessage |
toCore(CoreMessageObjectPools coreMessageObjectPools)
Deprecated.
This should make you convert your message into Core format.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptsConsumer, cleanupInternalProperties, getAnnotationString, getBodyBuffer, getConnectionID, getDuplicateIDBytes, getDuplicateProperty, getExtraBytesProperty, getGroupID, getLastValueProperty, getRoutingType, getType, getValidatedUserID, isExpired, isLargeMessage, putExtraBytesProperty, reencode, referenceOriginalMessage, rejectConsumer, releaseBuffer, removeAnnotation, removeExtraBytesProperty, setAnnotation, setConnectionID, setLastValueProperty, setRoutingType, setScheduledDeliveryTime, setType, setValidatedUserID, toMap, toPropertyMappublic MessageInternalImpl(ICoreMessage message)
public void decodeFromBuffer(ActiveMQBuffer buffer)
decodeFromBuffer in interface MessageInternalpublic int getEndOfMessagePosition()
getEndOfMessagePosition in interface MessageInternalpublic int getEndOfBodyPosition()
getEndOfBodyPosition in interface MessageInternalpublic void bodyChanged()
bodyChanged in interface MessageInternalpublic boolean isServerMessage()
isServerMessage in interface MessageInternalpublic ActiveMQBuffer getEncodedBuffer()
getEncodedBuffer in interface MessageInternalpublic int getHeadersAndPropertiesEncodeSize()
getHeadersAndPropertiesEncodeSize in interface MessageInternalpublic ActiveMQBuffer getWholeBuffer()
getWholeBuffer in interface MessageInternalpublic void encodeHeadersAndProperties(ActiveMQBuffer buffer)
encodeHeadersAndProperties in interface MessageInternalpublic void decodeHeadersAndProperties(ActiveMQBuffer buffer)
decodeHeadersAndProperties in interface MessageInternalpublic BodyEncoder getBodyEncoder() throws ActiveMQException
getBodyEncoder in interface MessageInternalActiveMQExceptionpublic InputStream getBodyInputStream()
getBodyInputStream in interface MessagegetBodyInputStream in interface MessageInternalpublic void messageChanged()
messageChanged in interface Messagepublic Long getScheduledDeliveryTime()
getScheduledDeliveryTime in interface Messagepublic RefCountMessageListener getContext()
getContext in interface Messagepublic SimpleString getReplyTo()
getReplyTo in interface Messagepublic Message setReplyTo(SimpleString address)
setReplyTo in interface Messagepublic Message setContext(RefCountMessageListener context)
setContext in interface Messagepublic Message setBuffer(io.netty.buffer.ByteBuf buffer)
public io.netty.buffer.ByteBuf getBuffer()
public Message copy()
public Message copy(long newID)
public long getMessageID()
getMessageID in interface Messagepublic Message setMessageID(long id)
setMessageID in interface Messagepublic long getExpiration()
getExpiration in interface Messagepublic Message setExpiration(long expiration)
setExpiration in interface Messageexpiration - expiration timepublic Object getUserID()
public boolean isDurable()
public Message setDurable(boolean durable)
setDurable in interface Messagedurable - true to flag this message as durable, false elsepublic Persister<Message> getPersister()
getPersister in interface Messagepublic String getAddress()
getAddress in interface Messagepublic Message setAddress(String address)
MessageMessage.setAddress(SimpleString) for the doc.setAddress in interface Messagepublic SimpleString getAddressSimpleString()
getAddressSimpleString in interface Messagepublic Message setAddress(SimpleString address)
MessagesetAddress in interface Messagepublic long getTimestamp()
getTimestamp in interface Messagepublic Message setTimestamp(long timestamp)
setTimestamp in interface Messagepublic byte getPriority()
Values range from 0 (less priority) to 9 (more priority) inclusive.
getPriority in interface Messagepublic Message setPriority(byte priority)
Value must be between 0 and 9 inclusive.
setPriority in interface Messagepriority - the new message prioritypublic void receiveBuffer(io.netty.buffer.ByteBuf buffer)
receiveBuffer in interface Messagebuffer - public void sendBuffer(io.netty.buffer.ByteBuf buffer,
int deliveryCount)
sendBuffer in interface Messagebuffer - the buffer used.deliveryCount - Some protocols (AMQP) will have this as part of the message.public int getPersistSize()
getPersistSize in interface Messagepublic void persist(ActiveMQBuffer targetRecord)
public void reloadPersistence(ActiveMQBuffer record)
reloadPersistence in interface Messagepublic Message putBooleanProperty(String key, boolean value)
putBooleanProperty in interface Messagepublic Message putByteProperty(String key, byte value)
putByteProperty in interface Messagepublic Message putBytesProperty(String key, byte[] value)
putBytesProperty in interface Messagepublic Message putShortProperty(String key, short value)
putShortProperty in interface Messagepublic Message putCharProperty(String key, char value)
putCharProperty in interface Messagepublic Message putIntProperty(String key, int value)
putIntProperty in interface Messagepublic Message putLongProperty(String key, long value)
putLongProperty in interface Messagepublic Message putFloatProperty(String key, float value)
putFloatProperty in interface Messagepublic Message putDoubleProperty(String key, double value)
putDoubleProperty in interface Messagepublic Message putBooleanProperty(SimpleString key, boolean value)
putBooleanProperty in interface Messagepublic Message putByteProperty(SimpleString key, byte value)
putByteProperty in interface Messagepublic Message putBytesProperty(SimpleString key, byte[] value)
putBytesProperty in interface Messagepublic Message putShortProperty(SimpleString key, short value)
putShortProperty in interface Messagepublic Message putCharProperty(SimpleString key, char value)
putCharProperty in interface Messagepublic Message putIntProperty(SimpleString key, int value)
putIntProperty in interface Messagepublic Message putLongProperty(SimpleString key, long value)
putLongProperty in interface Messagepublic Message putFloatProperty(SimpleString key, float value)
putFloatProperty in interface Messagepublic Message putDoubleProperty(SimpleString key, double value)
putDoubleProperty in interface Messagepublic Message putStringProperty(String key, String value)
putStringProperty in interface Messagekey - property namevalue - property valuepublic Message putObjectProperty(String key, Object value) throws ActiveMQPropertyConversionException
putObjectProperty in interface MessageActiveMQPropertyConversionExceptionpublic Message putObjectProperty(SimpleString key, Object value) throws ActiveMQPropertyConversionException
putObjectProperty in interface MessageActiveMQPropertyConversionExceptionpublic Object removeProperty(String key)
removeProperty in interface Messagepublic boolean containsProperty(String key)
containsProperty in interface Messagepublic Boolean getBooleanProperty(String key) throws ActiveMQPropertyConversionException
getBooleanProperty in interface MessageActiveMQPropertyConversionExceptionpublic Byte getByteProperty(String key) throws ActiveMQPropertyConversionException
getByteProperty in interface MessageActiveMQPropertyConversionExceptionpublic Double getDoubleProperty(String key) throws ActiveMQPropertyConversionException
getDoubleProperty in interface MessageActiveMQPropertyConversionExceptionpublic Integer getIntProperty(String key) throws ActiveMQPropertyConversionException
getIntProperty in interface MessageActiveMQPropertyConversionExceptionpublic Long getLongProperty(String key) throws ActiveMQPropertyConversionException
getLongProperty in interface MessageActiveMQPropertyConversionExceptionpublic Object getObjectProperty(String key)
getObjectProperty in interface Messagepublic Short getShortProperty(String key) throws ActiveMQPropertyConversionException
getShortProperty in interface MessageActiveMQPropertyConversionExceptionpublic Float getFloatProperty(String key) throws ActiveMQPropertyConversionException
getFloatProperty in interface MessageActiveMQPropertyConversionExceptionpublic String getStringProperty(String key) throws ActiveMQPropertyConversionException
getStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic SimpleString getSimpleStringProperty(String key) throws ActiveMQPropertyConversionException
getSimpleStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic byte[] getBytesProperty(String key) throws ActiveMQPropertyConversionException
getBytesProperty in interface MessageActiveMQPropertyConversionExceptionpublic Object removeProperty(SimpleString key)
removeProperty in interface Messagepublic boolean containsProperty(SimpleString key)
containsProperty in interface Messagepublic Boolean getBooleanProperty(SimpleString key) throws ActiveMQPropertyConversionException
getBooleanProperty in interface MessageActiveMQPropertyConversionExceptionpublic Byte getByteProperty(SimpleString key) throws ActiveMQPropertyConversionException
getByteProperty in interface MessageActiveMQPropertyConversionExceptionpublic Double getDoubleProperty(SimpleString key) throws ActiveMQPropertyConversionException
getDoubleProperty in interface MessageActiveMQPropertyConversionExceptionpublic Integer getIntProperty(SimpleString key) throws ActiveMQPropertyConversionException
getIntProperty in interface MessageActiveMQPropertyConversionExceptionpublic Long getLongProperty(SimpleString key) throws ActiveMQPropertyConversionException
getLongProperty in interface MessageActiveMQPropertyConversionExceptionpublic Object getObjectProperty(SimpleString key)
getObjectProperty in interface Messagepublic Object getAnnotation(SimpleString key)
getAnnotation in interface Messagepublic Short getShortProperty(SimpleString key) throws ActiveMQPropertyConversionException
getShortProperty in interface MessageActiveMQPropertyConversionExceptionpublic Float getFloatProperty(SimpleString key) throws ActiveMQPropertyConversionException
getFloatProperty in interface MessageActiveMQPropertyConversionExceptionpublic String getStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
getStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic SimpleString getSimpleStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
getSimpleStringProperty in interface MessageActiveMQPropertyConversionExceptionpublic byte[] getBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException
getBytesProperty in interface MessageActiveMQPropertyConversionExceptionpublic Message putStringProperty(SimpleString key, SimpleString value)
putStringProperty in interface Messagepublic Message putStringProperty(SimpleString key, String value)
putStringProperty in interface Messagepublic int getEncodeSize()
getEncodeSize in interface Messagepublic Set<SimpleString> getPropertyNames()
getPropertyNames in interface Messagepublic int getRefCount()
getRefCount in interface Messagepublic int incrementRefCount()
throws Exception
incrementRefCount in interface MessageExceptionpublic int decrementRefCount()
throws Exception
decrementRefCount in interface MessageExceptionpublic int incrementDurableRefCount()
incrementDurableRefCount in interface Messagepublic int decrementDurableRefCount()
decrementDurableRefCount in interface Messagepublic ICoreMessage toCore()
public ICoreMessage toCore(CoreMessageObjectPools coreMessageObjectPools)
public int getMemoryEstimate()
getMemoryEstimate in interface Messagepublic void setAddressTransient(SimpleString address)
setAddressTransient in interface MessageInternalpublic TypedProperties getTypedProperties()
getTypedProperties in interface MessageInternalpublic long getPersistentSize()
throws ActiveMQException
MessagegetPersistentSize in interface MessageActiveMQExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.