@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, wait
acceptsConsumer, 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, toPropertyMap
public MessageInternalImpl(ICoreMessage message)
public void decodeFromBuffer(ActiveMQBuffer buffer)
decodeFromBuffer
in interface MessageInternal
public int getEndOfMessagePosition()
getEndOfMessagePosition
in interface MessageInternal
public int getEndOfBodyPosition()
getEndOfBodyPosition
in interface MessageInternal
public void bodyChanged()
bodyChanged
in interface MessageInternal
public boolean isServerMessage()
isServerMessage
in interface MessageInternal
public ActiveMQBuffer getEncodedBuffer()
getEncodedBuffer
in interface MessageInternal
public int getHeadersAndPropertiesEncodeSize()
getHeadersAndPropertiesEncodeSize
in interface MessageInternal
public ActiveMQBuffer getWholeBuffer()
getWholeBuffer
in interface MessageInternal
public void encodeHeadersAndProperties(ActiveMQBuffer buffer)
encodeHeadersAndProperties
in interface MessageInternal
public void decodeHeadersAndProperties(ActiveMQBuffer buffer)
decodeHeadersAndProperties
in interface MessageInternal
public BodyEncoder getBodyEncoder() throws ActiveMQException
getBodyEncoder
in interface MessageInternal
ActiveMQException
public InputStream getBodyInputStream()
getBodyInputStream
in interface Message
getBodyInputStream
in interface MessageInternal
public void messageChanged()
messageChanged
in interface Message
public Long getScheduledDeliveryTime()
getScheduledDeliveryTime
in interface Message
public RefCountMessageListener getContext()
getContext
in interface Message
public SimpleString getReplyTo()
getReplyTo
in interface Message
public Message setReplyTo(SimpleString address)
setReplyTo
in interface Message
public Message setContext(RefCountMessageListener context)
setContext
in interface Message
public 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 Message
public Message setMessageID(long id)
setMessageID
in interface Message
public long getExpiration()
getExpiration
in interface Message
public Message setExpiration(long expiration)
setExpiration
in interface Message
expiration
- expiration timepublic Object getUserID()
public boolean isDurable()
public Message setDurable(boolean durable)
setDurable
in interface Message
durable
- true
to flag this message as durable, false
elsepublic Persister<Message> getPersister()
getPersister
in interface Message
public String getAddress()
getAddress
in interface Message
public Message setAddress(String address)
Message
Message.setAddress(SimpleString)
for the doc.setAddress
in interface Message
public SimpleString getAddressSimpleString()
getAddressSimpleString
in interface Message
public Message setAddress(SimpleString address)
Message
setAddress
in interface Message
public long getTimestamp()
getTimestamp
in interface Message
public Message setTimestamp(long timestamp)
setTimestamp
in interface Message
public byte getPriority()
Values range from 0 (less priority) to 9 (more priority) inclusive.
getPriority
in interface Message
public Message setPriority(byte priority)
Value must be between 0 and 9 inclusive.
setPriority
in interface Message
priority
- the new message prioritypublic void receiveBuffer(io.netty.buffer.ByteBuf buffer)
receiveBuffer
in interface Message
buffer
- public void sendBuffer(io.netty.buffer.ByteBuf buffer, int deliveryCount)
sendBuffer
in interface Message
buffer
- the buffer used.deliveryCount
- Some protocols (AMQP) will have this as part of the message.public int getPersistSize()
getPersistSize
in interface Message
public void persist(ActiveMQBuffer targetRecord)
public void reloadPersistence(ActiveMQBuffer record)
reloadPersistence
in interface Message
public Message putBooleanProperty(String key, boolean value)
putBooleanProperty
in interface Message
public Message putByteProperty(String key, byte value)
putByteProperty
in interface Message
public Message putBytesProperty(String key, byte[] value)
putBytesProperty
in interface Message
public Message putShortProperty(String key, short value)
putShortProperty
in interface Message
public Message putCharProperty(String key, char value)
putCharProperty
in interface Message
public Message putIntProperty(String key, int value)
putIntProperty
in interface Message
public Message putLongProperty(String key, long value)
putLongProperty
in interface Message
public Message putFloatProperty(String key, float value)
putFloatProperty
in interface Message
public Message putDoubleProperty(String key, double value)
putDoubleProperty
in interface Message
public Message putBooleanProperty(SimpleString key, boolean value)
putBooleanProperty
in interface Message
public Message putByteProperty(SimpleString key, byte value)
putByteProperty
in interface Message
public Message putBytesProperty(SimpleString key, byte[] value)
putBytesProperty
in interface Message
public Message putShortProperty(SimpleString key, short value)
putShortProperty
in interface Message
public Message putCharProperty(SimpleString key, char value)
putCharProperty
in interface Message
public Message putIntProperty(SimpleString key, int value)
putIntProperty
in interface Message
public Message putLongProperty(SimpleString key, long value)
putLongProperty
in interface Message
public Message putFloatProperty(SimpleString key, float value)
putFloatProperty
in interface Message
public Message putDoubleProperty(SimpleString key, double value)
putDoubleProperty
in interface Message
public Message putStringProperty(String key, String value)
putStringProperty
in interface Message
key
- property namevalue
- property valuepublic Message putObjectProperty(String key, Object value) throws ActiveMQPropertyConversionException
putObjectProperty
in interface Message
ActiveMQPropertyConversionException
public Message putObjectProperty(SimpleString key, Object value) throws ActiveMQPropertyConversionException
putObjectProperty
in interface Message
ActiveMQPropertyConversionException
public Object removeProperty(String key)
removeProperty
in interface Message
public boolean containsProperty(String key)
containsProperty
in interface Message
public Boolean getBooleanProperty(String key) throws ActiveMQPropertyConversionException
getBooleanProperty
in interface Message
ActiveMQPropertyConversionException
public Byte getByteProperty(String key) throws ActiveMQPropertyConversionException
getByteProperty
in interface Message
ActiveMQPropertyConversionException
public Double getDoubleProperty(String key) throws ActiveMQPropertyConversionException
getDoubleProperty
in interface Message
ActiveMQPropertyConversionException
public Integer getIntProperty(String key) throws ActiveMQPropertyConversionException
getIntProperty
in interface Message
ActiveMQPropertyConversionException
public Long getLongProperty(String key) throws ActiveMQPropertyConversionException
getLongProperty
in interface Message
ActiveMQPropertyConversionException
public Object getObjectProperty(String key)
getObjectProperty
in interface Message
public Short getShortProperty(String key) throws ActiveMQPropertyConversionException
getShortProperty
in interface Message
ActiveMQPropertyConversionException
public Float getFloatProperty(String key) throws ActiveMQPropertyConversionException
getFloatProperty
in interface Message
ActiveMQPropertyConversionException
public String getStringProperty(String key) throws ActiveMQPropertyConversionException
getStringProperty
in interface Message
ActiveMQPropertyConversionException
public SimpleString getSimpleStringProperty(String key) throws ActiveMQPropertyConversionException
getSimpleStringProperty
in interface Message
ActiveMQPropertyConversionException
public byte[] getBytesProperty(String key) throws ActiveMQPropertyConversionException
getBytesProperty
in interface Message
ActiveMQPropertyConversionException
public Object removeProperty(SimpleString key)
removeProperty
in interface Message
public boolean containsProperty(SimpleString key)
containsProperty
in interface Message
public Boolean getBooleanProperty(SimpleString key) throws ActiveMQPropertyConversionException
getBooleanProperty
in interface Message
ActiveMQPropertyConversionException
public Byte getByteProperty(SimpleString key) throws ActiveMQPropertyConversionException
getByteProperty
in interface Message
ActiveMQPropertyConversionException
public Double getDoubleProperty(SimpleString key) throws ActiveMQPropertyConversionException
getDoubleProperty
in interface Message
ActiveMQPropertyConversionException
public Integer getIntProperty(SimpleString key) throws ActiveMQPropertyConversionException
getIntProperty
in interface Message
ActiveMQPropertyConversionException
public Long getLongProperty(SimpleString key) throws ActiveMQPropertyConversionException
getLongProperty
in interface Message
ActiveMQPropertyConversionException
public Object getObjectProperty(SimpleString key)
getObjectProperty
in interface Message
public Object getAnnotation(SimpleString key)
getAnnotation
in interface Message
public Short getShortProperty(SimpleString key) throws ActiveMQPropertyConversionException
getShortProperty
in interface Message
ActiveMQPropertyConversionException
public Float getFloatProperty(SimpleString key) throws ActiveMQPropertyConversionException
getFloatProperty
in interface Message
ActiveMQPropertyConversionException
public String getStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
getStringProperty
in interface Message
ActiveMQPropertyConversionException
public SimpleString getSimpleStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
getSimpleStringProperty
in interface Message
ActiveMQPropertyConversionException
public byte[] getBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException
getBytesProperty
in interface Message
ActiveMQPropertyConversionException
public Message putStringProperty(SimpleString key, SimpleString value)
putStringProperty
in interface Message
public Message putStringProperty(SimpleString key, String value)
putStringProperty
in interface Message
public int getEncodeSize()
getEncodeSize
in interface Message
public Set<SimpleString> getPropertyNames()
getPropertyNames
in interface Message
public int getRefCount()
getRefCount
in interface Message
public int incrementRefCount() throws Exception
incrementRefCount
in interface Message
Exception
public int decrementRefCount() throws Exception
decrementRefCount
in interface Message
Exception
public int incrementDurableRefCount()
incrementDurableRefCount
in interface Message
public int decrementDurableRefCount()
decrementDurableRefCount
in interface Message
public ICoreMessage toCore()
public ICoreMessage toCore(CoreMessageObjectPools coreMessageObjectPools)
public int getMemoryEstimate()
getMemoryEstimate
in interface Message
public void setAddressTransient(SimpleString address)
setAddressTransient
in interface MessageInternal
public TypedProperties getTypedProperties()
getTypedProperties
in interface MessageInternal
public long getPersistentSize() throws ActiveMQException
Message
getPersistentSize
in interface Message
ActiveMQException
Copyright © 2018 JBoss by Red Hat. All rights reserved.