Class ServerMessageImpl
- java.lang.Object
-
- org.apache.activemq.artemis.core.message.impl.MessageInternalImpl
-
- org.apache.activemq.artemis.core.server.transformer.ServerMessageImpl
-
- All Implemented Interfaces:
Message,MessageInternal,ServerMessage
@Deprecated public class ServerMessageImpl extends MessageInternalImpl implements ServerMessage
Deprecated.Do not use this class. It is for backwards compatibility with Artemis 1.x only.
-
-
Field Summary
-
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 ServerMessageImpl(Message message)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerMessagecopy()Deprecated.ServerMessagecopy(long newID)Deprecated.MessageReferencecreateReference(Queue queue)Deprecated.intdurableDown()Deprecated.intdurableUp()Deprecated.voidencodeMessageIDToBuffer()Deprecated.voidforceAddress(SimpleString address)Deprecated.This will force encoding of the address, and will re-check the buffer This is to avoid setMessageTransient which set the address without changing the bufferbyte[]getDuplicateIDBytes()Deprecated.ObjectgetDuplicateProperty()Deprecated.ICoreMessagegetICoreMessage()Deprecated.intgetMemoryEstimate()Deprecated.PagingStoregetPagingStore()Deprecated.intgetRefCount()Deprecated.booleanisValid()Deprecated.ServerMessagemakeCopyForExpiryOrDLA(long newID, MessageReference originalReference, boolean expiry, boolean copyOriginalHeaders)Deprecated.intrefDown()Deprecated.intrefUp()Deprecated.ServerMessagesetMessageID(long id)Deprecated.voidsetOriginalHeaders(ServerMessage otherServerMessage, MessageReference originalReference, boolean expiry)Deprecated.voidsetPagingStore(PagingStore store)Deprecated.booleanstoreIsPaging()Deprecated.-
Methods inherited from class org.apache.activemq.artemis.core.message.impl.MessageInternalImpl
bodyChanged, containsProperty, containsProperty, copy, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getAddress, getAddressSimpleString, getAnnotation, getBodyEncoder, getBodyInputStream, getBooleanProperty, getBooleanProperty, getBuffer, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, getDurableCount, getEncodedBuffer, getEncodeSize, getEndOfBodyPosition, getEndOfMessagePosition, getExpiration, getFloatProperty, getFloatProperty, getHeadersAndPropertiesEncodeSize, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getMessageID, getObjectProperty, getObjectProperty, getOwner, getPersistentSize, getPersister, getPersistSize, getPriority, getPropertyNames, getProtocolName, getReplyTo, getScheduledDeliveryTime, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getTypedProperties, getUsage, getUserContext, getUserID, getWholeBuffer, isDurable, isServerMessage, messageChanged, persist, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putCharProperty, putCharProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putStringProperty, receiveBuffer, reloadPersistence, removeProperty, removeProperty, sendBuffer, setAddress, setAddress, setAddressTransient, setBuffer, setDurable, setExpiration, setOwner, setPriority, setReplyTo, setTimestamp, setUserContext, setUserID, toCore, toCore, usageDown, usageUp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.api.core.Message
acceptsConsumer, clearInternalProperties, containsProperty, containsProperty, copy, getAddress, getAddressSimpleString, getAnnotation, getAnnotationString, getBodyBuffer, getBooleanProperty, getBooleanProperty, getBrokerProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getConnectionID, getCorrelationID, getDoubleProperty, getDoubleProperty, getDurableCount, getEncodeSize, getExpiration, getExtraBytesProperty, getFloatProperty, getFloatProperty, getGroupID, getGroupSequence, getIngressTimestamp, getIntProperty, getIntProperty, getLastValueProperty, getLongProperty, getLongProperty, getMessageID, getObjectProperty, getObjectProperty, getObjectPropertyForFilter, getOwner, getPersistentSize, getPersister, getPersistSize, getPriority, getPropertyNames, getProtocolName, getReplyTo, getRoutingType, getScheduledDeliveryTime, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringBody, getStringProperty, getStringProperty, getTimestamp, getType, getUsage, getUserContext, getUserID, getValidatedUserID, getWholeMessageSize, hasScheduledDeliveryTime, isDurable, isExpired, isLargeMessage, messageChanged, persist, 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, reencode, referenceOriginalMessage, rejectConsumer, reloadPersistence, removeAnnotation, removeExtraBytesProperty, removeProperty, removeProperty, sendBuffer, setAddress, setAddress, setAnnotation, setBrokerProperty, setConnectionID, setCorrelationID, setDurable, setExpiration, setGroupID, setGroupID, setGroupSequence, setIngressTimestamp, setLastValueProperty, setOwner, setPriority, setReplyTo, setRoutingType, setScheduledDeliveryTime, setTimestamp, setType, setUserContext, setUserID, setValidatedUserID, toCompositeData, toCore, toCore, toMap, toMap, toPropertyMap, toPropertyMap, usageDown, usageUp
-
Methods inherited from interface org.apache.activemq.artemis.core.message.impl.MessageInternal
bodyChanged, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getBodyInputStream, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, isServerMessage, setAddressTransient
-
-
-
-
Constructor Detail
-
ServerMessageImpl
public ServerMessageImpl(Message message)
Deprecated.
-
-
Method Detail
-
isValid
public boolean isValid()
Deprecated.
-
getICoreMessage
public ICoreMessage getICoreMessage()
Deprecated.- Specified by:
getICoreMessagein interfaceServerMessage
-
setMessageID
public ServerMessage setMessageID(long id)
Deprecated.- Specified by:
setMessageIDin interfaceMessage- Overrides:
setMessageIDin classMessageInternalImpl
-
createReference
public MessageReference createReference(Queue queue)
Deprecated.- Specified by:
createReferencein interfaceServerMessage
-
forceAddress
public void forceAddress(SimpleString address)
Deprecated.This will force encoding of the address, and will re-check the buffer This is to avoid setMessageTransient which set the address without changing the buffer- Specified by:
forceAddressin interfaceServerMessage- Parameters:
address-
-
refUp
public int refUp()
Deprecated.- Specified by:
refUpin interfaceMessage- Overrides:
refUpin classMessageInternalImpl
-
refDown
public int refDown()
Deprecated.- Specified by:
refDownin interfaceMessage- Overrides:
refDownin classMessageInternalImpl
-
durableUp
public int durableUp()
Deprecated.- Specified by:
durableUpin interfaceMessage- Overrides:
durableUpin classMessageInternalImpl
-
durableDown
public int durableDown()
Deprecated.- Specified by:
durableDownin interfaceMessage- Overrides:
durableDownin classMessageInternalImpl
-
copy
public ServerMessage copy(long newID)
Deprecated.- Specified by:
copyin interfaceMessage- Overrides:
copyin classMessageInternalImpl
-
copy
public ServerMessage copy()
Deprecated.- Specified by:
copyin interfaceMessage- Overrides:
copyin classMessageInternalImpl
-
getMemoryEstimate
public int getMemoryEstimate()
Deprecated.- Specified by:
getMemoryEstimatein interfaceMessage- Overrides:
getMemoryEstimatein classMessageInternalImpl
-
getRefCount
public int getRefCount()
Deprecated.- Specified by:
getRefCountin interfaceMessage- Overrides:
getRefCountin classMessageInternalImpl
-
makeCopyForExpiryOrDLA
public ServerMessage makeCopyForExpiryOrDLA(long newID, MessageReference originalReference, boolean expiry, boolean copyOriginalHeaders) throws Exception
Deprecated.- Specified by:
makeCopyForExpiryOrDLAin interfaceServerMessage- Throws:
Exception
-
setOriginalHeaders
public void setOriginalHeaders(ServerMessage otherServerMessage, MessageReference originalReference, boolean expiry)
Deprecated.- Specified by:
setOriginalHeadersin interfaceServerMessage
-
setPagingStore
public void setPagingStore(PagingStore store)
Deprecated.- Specified by:
setPagingStorein interfaceServerMessage
-
getPagingStore
public PagingStore getPagingStore()
Deprecated.- Specified by:
getPagingStorein interfaceServerMessage
-
storeIsPaging
public boolean storeIsPaging()
Deprecated.- Specified by:
storeIsPagingin interfaceServerMessage
-
encodeMessageIDToBuffer
public void encodeMessageIDToBuffer()
Deprecated.- Specified by:
encodeMessageIDToBufferin interfaceServerMessage
-
getDuplicateIDBytes
public byte[] getDuplicateIDBytes()
Deprecated.- Specified by:
getDuplicateIDBytesin interfaceMessage
-
getDuplicateProperty
public Object getDuplicateProperty()
Deprecated.- Specified by:
getDuplicatePropertyin interfaceMessage
-
-