public interface LargeServerMessage extends ReplicatedLargeMessage
| Modifier and Type | Method and Description |
|---|---|
default void |
addBytes(ActiveMQBuffer bytes) |
void |
addBytes(ActiveMQBuffer bytes,
boolean initialHeader) |
void |
addBytes(byte[] bytes) |
void |
deleteFile() |
SequentialFile |
getAppendFile()
This will return the File suitable for appending the message
|
LargeBody |
getLargeBody() |
LargeBodyReader |
getLargeBodyReader() |
long |
getMessageID() |
StorageManager |
getStorageManager() |
void |
releaseResources(boolean sync)
Close the files if opened
|
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 |
setStorageManager(StorageManager storageManager) |
Message |
toMessage() |
void |
validateFile() |
clearPendingRecordID, getPendingRecordID, hasPendingRecord, setDurable, setMessageID, setPendingRecordIDMessage toMessage()
StorageManager getStorageManager()
void addBytes(byte[] bytes)
throws Exception
addBytes in interface ReplicatedLargeMessageExceptionaddBytes(byte[])default void addBytes(ActiveMQBuffer bytes) throws Exception
Exceptionvoid addBytes(ActiveMQBuffer bytes, boolean initialHeader) throws Exception
Exceptionlong getMessageID()
void setPaged()
void releaseResources(boolean sync)
releaseResources in interface ReplicatedLargeMessagereleaseResources(boolean)void deleteFile()
throws Exception
deleteFile in interface ReplicatedLargeMessageExceptiondeleteFile()SequentialFile getAppendFile() throws ActiveMQException
ActiveMQExceptionLargeBodyReader getLargeBodyReader() throws ActiveMQException
ActiveMQExceptionLargeBody getLargeBody()
void setStorageManager(StorageManager storageManager)
void validateFile()
throws ActiveMQException
ActiveMQExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.