public class PagedMessageImpl extends Object implements PagedMessage
| Constructor and Description |
|---|
PagedMessageImpl(int storedSize,
StorageManager storageManager) |
PagedMessageImpl(Message message,
long[] queueIDs) |
PagedMessageImpl(Message message,
long[] queueIDs,
long transactionID) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ActiveMQBuffer buffer) |
void |
encode(ActiveMQBuffer buffer) |
int |
getEncodeSize() |
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 storage) |
static boolean |
isLargeMessage(ActiveMQBuffer buffer)
This method won't move the
ActiveMQBuffer.readerIndex() of buffer. |
String |
toString() |
public PagedMessageImpl(Message message, long[] queueIDs, long transactionID)
public PagedMessageImpl(Message message, long[] queueIDs)
public PagedMessageImpl(int storedSize,
StorageManager storageManager)
public int getStoredSize()
PagedMessagegetStoredSize in interface PagedMessagepublic Message getMessage()
getMessage in interface PagedMessagepublic void initMessage(StorageManager storage)
initMessage in interface PagedMessagepublic long getTransactionID()
getTransactionID in interface PagedMessagepublic long[] getQueueIDs()
PagedMessagegetQueueIDs in interface PagedMessagepublic static boolean isLargeMessage(ActiveMQBuffer buffer)
ActiveMQBuffer.readerIndex() of buffer.public void decode(ActiveMQBuffer buffer)
decode in interface EncodingSupportpublic void encode(ActiveMQBuffer buffer)
encode in interface EncodingSupportpublic int getEncodeSize()
getEncodeSize in interface EncodingSupportpublic long getPersistentSize()
throws ActiveMQException
PagedMessagegetPersistentSize in interface PagedMessageActiveMQExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.