public interface ServerMessage
extends org.apache.activemq.artemis.core.message.impl.MessageInternal, org.apache.activemq.artemis.core.journal.EncodingSupport
BYTES_TYPE, DEFAULT_TYPE, HDR_ACTUAL_EXPIRY_TIME, 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_SCHEDULED_DELIVERY_TIME, HDR_VALIDATED_USER, MAP_TYPE, OBJECT_TYPE, STREAM_TYPE, TEXT_TYPE| Modifier and Type | Method and Description |
|---|---|
ServerMessage |
copy() |
ServerMessage |
copy(long newID) |
MessageReference |
createReference(Queue queue) |
int |
decrementDurableRefCount() |
int |
decrementRefCount() |
void |
encodeMessageIDToBuffer() |
void |
forceAddress(org.apache.activemq.artemis.api.core.SimpleString address)
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
|
byte[] |
getDuplicateIDBytes() |
Object |
getDuplicateProperty() |
int |
getMemoryEstimate() |
PagingStore |
getPagingStore() |
int |
getRefCount() |
boolean |
hasInternalProperties() |
int |
incrementDurableRefCount() |
int |
incrementRefCount() |
ServerMessage |
makeCopyForExpiryOrDLA(long newID,
MessageReference originalReference,
boolean expiry,
boolean copyOriginalHeaders) |
ServerMessage |
setMessageID(long id) |
void |
setOriginalHeaders(ServerMessage other,
MessageReference originalReference,
boolean expiry) |
void |
setPagingStore(PagingStore store) |
boolean |
storeIsPaging() |
bodyChanged, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getBodyInputStream, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, isServerMessage, setAddressTransientcontainsProperty, containsProperty, getAddress, getBodyBuffer, getBodyBufferDuplicate, getBooleanProperty, getBooleanProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, getEncodeSize, getExpiration, getFloatProperty, getFloatProperty, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getMessageID, getObjectProperty, getObjectProperty, getPriority, getPropertyNames, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getType, getUserID, isDurable, isExpired, isLargeMessage, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putCharProperty, putCharProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, removeProperty, removeProperty, setAddress, setDurable, setExpiration, setPriority, setTimestamp, setUserID, toMap, toPropertyMap, writeBodyBufferBytes, writeBodyBufferStringServerMessage setMessageID(long id)
MessageReference createReference(Queue queue)
void forceAddress(org.apache.activemq.artemis.api.core.SimpleString address)
address - int incrementDurableRefCount()
int decrementDurableRefCount()
ServerMessage copy(long newID)
ServerMessage copy()
int getMemoryEstimate()
int getRefCount()
ServerMessage makeCopyForExpiryOrDLA(long newID, MessageReference originalReference, boolean expiry, boolean copyOriginalHeaders) throws Exception
Exceptionvoid setOriginalHeaders(ServerMessage other, MessageReference originalReference, boolean expiry)
void setPagingStore(PagingStore store)
PagingStore getPagingStore()
boolean hasInternalProperties()
boolean storeIsPaging()
void encodeMessageIDToBuffer()
byte[] getDuplicateIDBytes()
Object getDuplicateProperty()
Copyright © 2023 The Apache Software Foundation. All rights reserved.