public interface PendingMessageCursor extends org.apache.activemq.Service
| Modifier and Type | Field and Description |
|---|---|
static long |
INFINITE_WAIT |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ConnectionContext context,
Destination destination)
Add a destination
|
void |
addMessageFirst(org.apache.activemq.broker.region.MessageReference node)
add message to await dispatch
|
boolean |
addMessageLast(org.apache.activemq.broker.region.MessageReference node)
add message to await dispatch
|
void |
addRecoveredMessage(org.apache.activemq.broker.region.MessageReference node)
Add a message recovered from a retroactive policy
|
void |
clear()
clear all pending messages
|
void |
destroy()
destroy the cursor
|
void |
gc()
free up any internal buffers
|
int |
getMaxAuditDepth() |
int |
getMaxBatchSize() |
int |
getMaxProducersToAudit() |
int |
getMemoryUsageHighWaterMark() |
org.apache.activemq.ActiveMQMessageAudit |
getMessageAudit() |
SystemUsage |
getSystemUsage() |
boolean |
hasMessagesBufferedToDeliver() |
boolean |
hasNext() |
boolean |
hasSpace() |
boolean |
isCacheEnabled() |
boolean |
isEmpty() |
boolean |
isEmpty(Destination destination)
check if a Destination is Empty for this cursor
|
boolean |
isEnableAudit() |
boolean |
isFull() |
boolean |
isRecoveryRequired()
Informs the Broker if the subscription needs to intervention to recover
it's state e.g.
|
boolean |
isTransient() |
boolean |
isUseCache() |
long |
messageSize() |
org.apache.activemq.broker.region.MessageReference |
next() |
LinkedList<org.apache.activemq.broker.region.MessageReference> |
pageInList(int maxItems)
Page in a restricted number of messages and increment the reference count
|
void |
rebase() |
void |
release()
hint to the cursor to release any locks it might have grabbed after a
reset
|
void |
remove()
remove the message at the cursor position
|
List<org.apache.activemq.broker.region.MessageReference> |
remove(ConnectionContext context,
Destination destination)
remove a destination
|
void |
remove(org.apache.activemq.broker.region.MessageReference node)
remove a node
|
void |
reset()
reset the cursor
|
void |
resetForGC()
Give the cursor a hint that we are about to remove messages from memory
only
|
void |
rollback(org.apache.activemq.command.MessageId id)
remove from auditing the message id
|
void |
setEnableAudit(boolean enableAudit) |
void |
setMaxAuditDepth(int depth)
Set the maximum depth of message ids to track
|
void |
setMaxBatchSize(int maxBatchSize)
Set the max batch size
|
void |
setMaxProducersToAudit(int value)
set the maximum number of producers to track at one time
|
void |
setMemoryUsageHighWaterMark(int memoryUsageHighWaterMark) |
void |
setMessageAudit(org.apache.activemq.ActiveMQMessageAudit audit)
set the audit
|
void |
setSystemUsage(SystemUsage systemUsage)
Set the UsageManager
|
void |
setUseCache(boolean useCache)
use a cache to improve performance
|
int |
size() |
boolean |
tryAddMessageLast(org.apache.activemq.broker.region.MessageReference node,
long maxWaitTime)
add message to await dispatch - if it can
|
static final long INFINITE_WAIT
void add(ConnectionContext context, Destination destination) throws Exception
context - destination - ExceptionList<org.apache.activemq.broker.region.MessageReference> remove(ConnectionContext context, Destination destination) throws Exception
context - destination - Exceptionboolean isEmpty()
boolean isEmpty(Destination destination)
destination - void reset()
void release()
boolean addMessageLast(org.apache.activemq.broker.region.MessageReference node) throws Exception
node - IOExceptionExceptionboolean tryAddMessageLast(org.apache.activemq.broker.region.MessageReference node, long maxWaitTime) throws Exception
node - maxWaitTime - IOExceptionExceptionvoid addMessageFirst(org.apache.activemq.broker.region.MessageReference node) throws Exception
node - Exceptionvoid addRecoveredMessage(org.apache.activemq.broker.region.MessageReference node) throws Exception
node - Exceptionboolean hasNext()
org.apache.activemq.broker.region.MessageReference next()
void remove()
int size()
long messageSize()
void clear()
boolean isRecoveryRequired()
int getMaxBatchSize()
void setMaxBatchSize(int maxBatchSize)
maxBatchSize - void resetForGC()
void remove(org.apache.activemq.broker.region.MessageReference node)
node - void gc()
void setSystemUsage(SystemUsage systemUsage)
systemUsage - SystemUsageSystemUsage getSystemUsage()
int getMemoryUsageHighWaterMark()
void setMemoryUsageHighWaterMark(int memoryUsageHighWaterMark)
memoryUsageHighWaterMark - the memoryUsageHighWaterMark to setboolean isFull()
boolean hasSpace()
boolean hasMessagesBufferedToDeliver()
LinkedList<org.apache.activemq.broker.region.MessageReference> pageInList(int maxItems)
maxItems - void setMaxProducersToAudit(int value)
value - int getMaxProducersToAudit()
void setMaxAuditDepth(int depth)
depth - int getMaxAuditDepth()
boolean isEnableAudit()
void setEnableAudit(boolean enableAudit)
enableAudit - the enableAudit to setboolean isTransient()
void setMessageAudit(org.apache.activemq.ActiveMQMessageAudit audit)
audit - org.apache.activemq.ActiveMQMessageAudit getMessageAudit()
void setUseCache(boolean useCache)
useCache - boolean isUseCache()
void rollback(org.apache.activemq.command.MessageId id)
id - boolean isCacheEnabled()
void rebase()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.