public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor implements MessageRecoveryListener
| Modifier and Type | Field and Description |
|---|---|
protected PendingList |
batchList |
protected boolean |
batchResetNeeded |
protected boolean |
hadSpace |
protected Destination |
regionDestination |
protected int |
size |
audit, enableAudit, last, maxAuditDepth, maxBatchSize, maxProducersToAudit, memoryUsageHighWaterMark, prioritizedMessages, systemUsage, useCacheINFINITE_WAIT| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStoreCursor(Destination destination) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageFirst(org.apache.activemq.broker.region.MessageReference node)
add message to await dispatch
|
protected boolean |
canEnableCash() |
boolean |
canRecoveryNextMessage() |
void |
clear()
clear all pending messages
|
protected abstract void |
doFillBatch() |
protected boolean |
duplicateFromStoreExcepted(org.apache.activemq.command.Message message) |
protected boolean |
enableCacheNow() |
protected void |
fillBatch() |
void |
finished() |
void |
gc()
free up any internal buffers
|
protected abstract long |
getStoreMessageSize() |
protected abstract int |
getStoreSize() |
Subscription |
getSubscription() |
static boolean |
gotToTheStore(org.apache.activemq.command.Message message) |
boolean |
hasMessagesBufferedToDeliver() |
boolean |
hasNext() |
boolean |
isCacheEnabled() |
boolean |
isEmpty() |
protected abstract boolean |
isStoreEmpty() |
long |
messageSize() |
org.apache.activemq.broker.region.MessageReference |
next() |
void |
rebase() |
boolean |
recoverMessage(org.apache.activemq.command.Message message) |
boolean |
recoverMessage(org.apache.activemq.command.Message message,
boolean cached) |
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
|
void |
remove(org.apache.activemq.broker.region.MessageReference node)
remove a node
|
void |
reset()
reset the cursor
|
protected abstract void |
resetBatch() |
protected void |
resetSize() |
protected void |
setBatch(org.apache.activemq.command.MessageId messageId) |
int |
size() |
void |
start() |
void |
stop() |
String |
toString() |
boolean |
tryAddMessageLast(org.apache.activemq.broker.region.MessageReference node,
long wait)
add message to await dispatch - if it can
|
add, addMessageLast, addRecoveredMessage, destroy, getMaxAuditDepth, getMaxBatchSize, getMaxProducersToAudit, getMemoryUsageHighWaterMark, getMessageAudit, getSystemUsage, hasSpace, isDuplicate, isEmpty, isEnableAudit, isFull, isPrioritizedMessageSubscriber, isRecoveryRequired, isStarted, isTransient, isUseCache, pageInList, recordUniqueId, remove, resetForGC, rollback, setCacheEnabled, setEnableAudit, setMaxAuditDepth, setMaxBatchSize, setMaxProducersToAudit, setMemoryUsageHighWaterMark, setMessageAudit, setSystemUsage, setUseCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasSpace, isDuplicate, recoverMessageReferenceprotected final Destination regionDestination
protected final PendingList batchList
protected boolean batchResetNeeded
protected int size
protected boolean hadSpace
protected AbstractStoreCursor(Destination destination)
public final void start() throws Exception
start in interface org.apache.activemq.Servicestart in class AbstractPendingMessageCursorExceptionprotected void resetSize()
public void rebase()
rebase in interface PendingMessageCursorrebase in class AbstractPendingMessageCursorpublic final void stop() throws Exception
stop in interface org.apache.activemq.Servicestop in class AbstractPendingMessageCursorExceptionpublic final boolean recoverMessage(org.apache.activemq.command.Message message) throws Exception
recoverMessage in interface MessageRecoveryListenerExceptionpublic boolean recoverMessage(org.apache.activemq.command.Message message, boolean cached) throws Exception
Exceptionprotected boolean duplicateFromStoreExcepted(org.apache.activemq.command.Message message)
public static boolean gotToTheStore(org.apache.activemq.command.Message message) throws Exception
Exceptionpublic final void reset()
PendingMessageCursorreset in interface PendingMessageCursorreset in class AbstractPendingMessageCursorpublic void release()
PendingMessageCursorrelease in interface PendingMessageCursorrelease in class AbstractPendingMessageCursorpublic final void finished()
public final boolean hasNext()
hasNext in interface PendingMessageCursorhasNext in class AbstractPendingMessageCursorpublic final org.apache.activemq.broker.region.MessageReference next()
next in interface PendingMessageCursornext in class AbstractPendingMessageCursorpublic boolean tryAddMessageLast(org.apache.activemq.broker.region.MessageReference node, long wait) throws Exception
PendingMessageCursortryAddMessageLast in interface PendingMessageCursortryAddMessageLast in class AbstractPendingMessageCursorIOExceptionExceptionpublic boolean isCacheEnabled()
isCacheEnabled in interface PendingMessageCursorisCacheEnabled in class AbstractPendingMessageCursorprotected boolean enableCacheNow()
protected boolean canEnableCash()
public boolean canRecoveryNextMessage()
canRecoveryNextMessage in interface MessageRecoveryListenerprotected void setBatch(org.apache.activemq.command.MessageId messageId) throws Exception
Exceptionpublic void addMessageFirst(org.apache.activemq.broker.region.MessageReference node) throws Exception
PendingMessageCursoraddMessageFirst in interface PendingMessageCursoraddMessageFirst in class AbstractPendingMessageCursorExceptionpublic final void remove()
PendingMessageCursorremove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorpublic final void remove(org.apache.activemq.broker.region.MessageReference node)
PendingMessageCursorremove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorpublic final void clear()
PendingMessageCursorclear in interface PendingMessageCursorclear in class AbstractPendingMessageCursorpublic void gc()
PendingMessageCursorgc in interface PendingMessageCursorgc in class AbstractPendingMessageCursorprotected final void fillBatch()
fillBatch in class AbstractPendingMessageCursorpublic final boolean isEmpty()
isEmpty in interface PendingMessageCursorisEmpty in class AbstractPendingMessageCursorpublic final boolean hasMessagesBufferedToDeliver()
hasMessagesBufferedToDeliver in interface PendingMessageCursorhasMessagesBufferedToDeliver in class AbstractPendingMessageCursorpublic final int size()
size in interface PendingMessageCursorsize in class AbstractPendingMessageCursorpublic final long messageSize()
messageSize in interface PendingMessageCursorprotected abstract void doFillBatch() throws Exception
Exceptionprotected abstract void resetBatch()
protected abstract int getStoreSize()
protected abstract long getStoreMessageSize()
protected abstract boolean isStoreEmpty()
public Subscription getSubscription()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.