Interface LargeServerMessage
-
- All Superinterfaces:
ReplicatedLargeMessage
- All Known Subinterfaces:
CoreLargeServerMessage
- All Known Implementing Classes:
LargeServerMessageImpl
public interface LargeServerMessage extends ReplicatedLargeMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddBytes(byte[] bytes)default voidaddBytes(ActiveMQBuffer bytes)voidaddBytes(ActiveMQBuffer bytes, boolean initialHeader)voiddeleteFile()SequentialFilegetAppendFile()This will return the File suitable for appending the messageLargeBodygetLargeBody()LargeBodyReadergetLargeBodyReader()longgetMessageID()StorageManagergetStorageManager()voidreleaseResources(boolean sync, boolean sendEvent)Close the files if openedvoidsetPaged()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 pagedvoidsetStorageManager(StorageManager storageManager)MessagetoMessage()voidvalidateFile()-
Methods inherited from interface org.apache.activemq.artemis.core.replication.ReplicatedLargeMessage
setDurable, setMessageID
-
-
-
-
Method Detail
-
toMessage
Message toMessage()
-
getStorageManager
StorageManager getStorageManager()
-
addBytes
void addBytes(byte[] bytes) throws Exception- Specified by:
addBytesin interfaceReplicatedLargeMessage- Throws:
Exception- See Also:
addBytes(byte[])
-
addBytes
default void addBytes(ActiveMQBuffer bytes) throws Exception
- Throws:
Exception
-
addBytes
void addBytes(ActiveMQBuffer bytes, boolean initialHeader) throws Exception
- Throws:
Exception
-
getMessageID
long getMessageID()
-
setPaged
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
-
releaseResources
void releaseResources(boolean sync, boolean sendEvent)Close the files if opened- Specified by:
releaseResourcesin interfaceReplicatedLargeMessage- See Also:
releaseResources(boolean,boolean)
-
deleteFile
void deleteFile() throws Exception- Specified by:
deleteFilein interfaceReplicatedLargeMessage- Throws:
Exception- See Also:
deleteFile()
-
getAppendFile
SequentialFile getAppendFile() throws ActiveMQException
This will return the File suitable for appending the message- Returns:
- Throws:
ActiveMQException
-
getLargeBodyReader
LargeBodyReader getLargeBodyReader() throws ActiveMQException
- Throws:
ActiveMQException
-
getLargeBody
LargeBody getLargeBody()
-
setStorageManager
void setStorageManager(StorageManager storageManager)
-
validateFile
void validateFile() throws ActiveMQException- Throws:
ActiveMQException
-
-