public class ServerMessageImpl extends MessageImpl implements ServerMessage
address, BODY_OFFSET, bodyBuffer, buffer, BUFFER_HEADER_SPACE, bufferValid, durable, HDR_BRIDGE_DUPLICATE_ID, HDR_ROUTE_TO_ACK_IDS, HDR_ROUTE_TO_IDS, HDR_SCALEDOWN_TO_IDS, messageID, priority, properties, timestamp, typeBYTES_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_ROUTE_TO_IDS, HDR_ROUTING_TYPE, HDR_SCHEDULED_DELIVERY_TIME, HDR_VALIDATED_USER, MAP_TYPE, OBJECT_TYPE, STREAM_TYPE, TEXT_TYPE| Modifier | Constructor and Description |
|---|---|
|
ServerMessageImpl() |
|
ServerMessageImpl(long messageID,
int initialMessageBufferSize) |
protected |
ServerMessageImpl(ServerMessageImpl other) |
protected |
ServerMessageImpl(ServerMessageImpl other,
TypedProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ServerMessage |
copy() |
ServerMessage |
copy(long newID) |
MessageReference |
createReference(Queue queue) |
int |
decrementDurableRefCount() |
int |
decrementRefCount() |
void |
encodeMessageIDToBuffer() |
void |
forceAddress(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
|
InputStream |
getBodyInputStream() |
byte[] |
getDuplicateIDBytes() |
Object |
getDuplicateProperty() |
int |
getMemoryEstimate() |
PagingStore |
getPagingStore() |
int |
getRefCount() |
boolean |
hasInternalProperties() |
int |
incrementDurableRefCount() |
int |
incrementRefCount() |
boolean |
isLargeMessage()
Returns whether this message is a large message or a regular message.
|
boolean |
isServerMessage() |
ServerMessage |
makeCopyForExpiryOrDLA(long newID,
MessageReference originalReference,
boolean expiry) |
ServerMessage |
makeCopyForExpiryOrDLA(long newID,
MessageReference originalReference,
boolean expiry,
boolean copyOriginalHeaders) |
ServerMessageImpl |
setMessageID(long id) |
void |
setOriginalHeaders(ServerMessage other,
MessageReference originalReference,
boolean expiry) |
void |
setPagingStore(PagingStore pagingStore) |
boolean |
storeIsPaging() |
String |
toString() |
bodyChanged, bodyToString, checkCompletion, containsProperty, containsProperty, copyHeadersAndProperties, createBody, decode, decodeFromBuffer, decodeHeadersAndProperties, encode, encodeHeadersAndProperties, equals, getAddress, getBodyBuffer, getBodyBufferDuplicate, getBodyEncoder, getBooleanProperty, getBooleanProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, getEncodedBuffer, getEncodeSize, getEndOfBodyPosition, getEndOfMessagePosition, getExpiration, getFloatProperty, getFloatProperty, getHeadersAndPropertiesEncodeSize, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getMessageID, getObjectProperty, getObjectProperty, getPriority, getProperties, getPropertyNames, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getType, getTypedProperties, getUserID, getWholeBuffer, hashCode, isDurable, isExpired, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putCharProperty, putCharProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putTypedProperties, removeProperty, removeProperty, setAddress, setAddressTransient, setDurable, setExpiration, setPriority, setTimestamp, setType, setUserID, toMap, toPropertyMap, writeBodyBufferBytes, writeBodyBufferStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbodyChanged, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, 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, 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, writeBodyBufferStringdecode, encode, getEncodeSizepublic ServerMessageImpl()
public ServerMessageImpl(long messageID,
int initialMessageBufferSize)
protected ServerMessageImpl(ServerMessageImpl other)
protected ServerMessageImpl(ServerMessageImpl other, TypedProperties properties)
public boolean isServerMessage()
isServerMessage in interface MessageInternalpublic ServerMessageImpl setMessageID(long id)
setMessageID in interface ServerMessagepublic MessageReference createReference(Queue queue)
createReference in interface ServerMessagepublic boolean hasInternalProperties()
hasInternalProperties in interface ServerMessagepublic int incrementRefCount()
throws Exception
incrementRefCount in interface ServerMessageExceptionpublic int decrementRefCount()
throws Exception
decrementRefCount in interface ServerMessageExceptionpublic int incrementDurableRefCount()
incrementDurableRefCount in interface ServerMessagepublic int decrementDurableRefCount()
decrementDurableRefCount in interface ServerMessagepublic int getRefCount()
getRefCount in interface ServerMessagepublic boolean isLargeMessage()
MessageisLargeMessage in interface Messagepublic int getMemoryEstimate()
getMemoryEstimate in interface ServerMessagepublic ServerMessage copy(long newID)
copy in interface ServerMessagepublic ServerMessage copy()
copy in interface ServerMessagepublic ServerMessage makeCopyForExpiryOrDLA(long newID, MessageReference originalReference, boolean expiry) throws Exception
Exceptionpublic ServerMessage makeCopyForExpiryOrDLA(long newID, MessageReference originalReference, boolean expiry, boolean copyOriginalHeaders) throws Exception
makeCopyForExpiryOrDLA in interface ServerMessageExceptionpublic void setOriginalHeaders(ServerMessage other, MessageReference originalReference, boolean expiry)
setOriginalHeaders in interface ServerMessagepublic void setPagingStore(PagingStore pagingStore)
setPagingStore in interface ServerMessagepublic void forceAddress(SimpleString address)
ServerMessageforceAddress in interface ServerMessagepublic PagingStore getPagingStore()
getPagingStore in interface ServerMessagepublic boolean storeIsPaging()
storeIsPaging in interface ServerMessagepublic InputStream getBodyInputStream()
getBodyInputStream in interface MessageInternalpublic void encodeMessageIDToBuffer()
encodeMessageIDToBuffer in interface ServerMessagepublic byte[] getDuplicateIDBytes()
getDuplicateIDBytes in interface ServerMessagepublic Object getDuplicateProperty()
getDuplicateProperty in interface ServerMessageCopyright © 2018 JBoss by Red Hat. All rights reserved.