public class ServerMessageImpl extends MessageImpl implements ServerMessage
address, BODY_OFFSET, bodyBuffer, buffer, BUFFER_HEADER_SPACE, bufferValid, durable, expiration, HDR_BRIDGE_DUPLICATE_ID, HDR_ROUTE_TO_IDS, messageID, priority, properties, timestamp, typeBYTES_TYPE, DEFAULT_TYPE, HDR_ACTUAL_EXPIRY_TIME, 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_SCHEDULED_DELIVERY_TIME, 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 |
finishCopy() |
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,
boolean expiry) |
void |
setMessageID(long id) |
void |
setOriginalHeaders(ServerMessage other,
boolean expiry) |
void |
setPagingStore(PagingStore pagingStore) |
boolean |
storeIsPaging() |
String |
toString() |
bodyChanged, checkCopy, containsProperty, containsProperty, copyHeadersAndProperties, createBody, decode, decodeFromBuffer, decodeHeadersAndProperties, encode, encodeHeadersAndProperties, getAddress, getBodyBuffer, 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, getPropertyNames, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getType, getTypedProperties, getUserID, getWholeBuffer, isDurable, isExpired, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putTypedProperties, removeProperty, removeProperty, resetCopied, setAddress, setAddressTransient, setDurable, setExpiration, setPriority, setTimestamp, setType, setUserID, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbodyChanged, checkCopy, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, resetCopied, setAddressTransientcontainsProperty, containsProperty, getAddress, getBodyBuffer, 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, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, removeProperty, removeProperty, setAddress, setDurable, setExpiration, setPriority, setTimestamp, setUserID, toMapdecode, 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 void 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 void finishCopy()
throws Exception
finishCopy in interface ServerMessageExceptionpublic ServerMessage copy()
copy in interface ServerMessagepublic ServerMessage makeCopyForExpiryOrDLA(long newID, boolean expiry) throws Exception
makeCopyForExpiryOrDLA in interface ServerMessageExceptionpublic void setOriginalHeaders(ServerMessage other, boolean expiry)
setOriginalHeaders in interface ServerMessagepublic void setPagingStore(PagingStore pagingStore)
setPagingStore 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 © 2012 JBoss by Red Hat. All Rights Reserved.