public interface PagedMessage extends EncodingSupport
We can't just record the ServerMessage as we need other information (such as the TransactionID used during paging)
Modifier and Type | Method and Description |
---|---|
Message |
getMessage() |
long |
getPersistentSize()
This is the size of the message when persisted on disk and is used for metrics tracking
If a normal message it will be the encoded message size
If a large message it will be encoded message size + large message body size
|
long[] |
getQueueIDs()
The queues that were routed during paging
|
int |
getStoredSize()
This returns how much the PagedMessage used, or it's going to use
from storage.
|
long |
getTransactionID() |
void |
initMessage(StorageManager storageManager) |
decode, encode, getEncodeSize
Message getMessage()
long[] getQueueIDs()
void initMessage(StorageManager storageManager)
long getTransactionID()
long getPersistentSize() throws ActiveMQException
ActiveMQException
int getStoredSize()
Copyright © 2021 JBoss by Red Hat. All rights reserved.