public class NullStorageLargeServerMessage extends ServerMessageImpl implements LargeServerMessage
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| Constructor and Description |
|---|
NullStorageLargeServerMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBytes(byte[] bytes) |
void |
complete() |
void |
decrementDelayDeletionCount() |
void |
deleteFile() |
int |
getEncodeSize()
Returns the size of the encoded message.
|
long |
getPendingRecordID() |
void |
incrementDelayDeletionCount() |
boolean |
isComplete() |
boolean |
isFileExists() |
boolean |
isLargeMessage()
Returns whether this message is a large message or a regular message.
|
void |
releaseResources()
Close the files if opened
|
void |
setComplete(boolean isComplete) |
void |
setPaged()
We have to copy the large message content in case of DLQ and paged messages
For that we need to pre-mark the LargeMessage with a flag when it is paged
|
void |
setPendingRecordID(long pendingRecordID) |
String |
toString() |
copy, copy, createReference, decrementDurableRefCount, decrementRefCount, encodeMessageIDToBuffer, finishCopy, getBodyInputStream, getDuplicateIDBytes, getDuplicateProperty, getMemoryEstimate, getPagingStore, getRefCount, hasInternalProperties, incrementDurableRefCount, incrementRefCount, isServerMessage, makeCopyForExpiryOrDLA, setMessageID, setOriginalHeaders, setPagingStore, storeIsPagingbodyChanged, checkCopy, containsProperty, containsProperty, copyHeadersAndProperties, createBody, decode, decodeFromBuffer, decodeHeadersAndProperties, encode, encodeHeadersAndProperties, getAddress, getBodyBuffer, getBodyEncoder, getBooleanProperty, getBooleanProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, getEncodedBuffer, 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, waitcopy, copy, createReference, decrementDurableRefCount, decrementRefCount, encodeMessageIDToBuffer, finishCopy, getDuplicateIDBytes, getDuplicateProperty, getMemoryEstimate, getPagingStore, getRefCount, hasInternalProperties, incrementDurableRefCount, incrementRefCount, makeCopyForExpiryOrDLA, setMessageID, setOriginalHeaders, setPagingStore, storeIsPagingbodyChanged, checkCopy, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getBodyInputStream, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, isServerMessage, resetCopied, setAddressTransientcontainsProperty, containsProperty, getAddress, getBodyBuffer, getBooleanProperty, getBooleanProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, 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, encodepublic void releaseResources()
LargeServerMessagereleaseResources in interface LargeServerMessagepublic void addBytes(byte[] bytes)
addBytes in interface LargeServerMessagepublic void deleteFile()
throws Exception
deleteFile in interface LargeServerMessageExceptionpublic boolean isLargeMessage()
MessageisLargeMessage in interface MessageisLargeMessage in class ServerMessageImplpublic boolean isComplete()
public void setComplete(boolean isComplete)
public boolean isFileExists()
throws Exception
isFileExists in interface LargeServerMessageExceptionpublic void decrementDelayDeletionCount()
decrementDelayDeletionCount in interface LargeServerMessagepublic void incrementDelayDeletionCount()
incrementDelayDeletionCount in interface LargeServerMessagepublic int getEncodeSize()
MessagegetEncodeSize in interface MessagegetEncodeSize in interface EncodingSupportgetEncodeSize in class MessageImplpublic String toString()
toString in class ServerMessageImplpublic void setPaged()
LargeServerMessagesetPaged in interface LargeServerMessagepublic void setPendingRecordID(long pendingRecordID)
setPendingRecordID in interface LargeServerMessagepublic long getPendingRecordID()
getPendingRecordID in interface LargeServerMessageCopyright © 2012 JBoss by Red Hat. All Rights Reserved.