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, useCache| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStoreCursor(Destination destination) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageFirst(MessageReference node)
add message to await dispatch
|
boolean |
addMessageLast(MessageReference node)
add message to await dispatch
|
void |
clear()
clear all pending messages
|
protected abstract void |
doFillBatch() |
protected void |
fillBatch() |
void |
finished() |
void |
gc()
free up any internal buffers
|
protected abstract int |
getStoreSize() |
Subscription |
getSubscription() |
boolean |
hasMessagesBufferedToDeliver() |
boolean |
hasNext() |
boolean |
isEmpty() |
protected abstract boolean |
isStoreEmpty() |
MessageReference |
next() |
void |
rebase() |
boolean |
recoverMessage(Message message) |
boolean |
recoverMessage(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(MessageReference node)
remove a node
|
void |
reset()
reset the cursor
|
protected abstract void |
resetBatch() |
protected void |
resetSize() |
protected void |
setBatch(MessageId messageId) |
int |
size() |
void |
start() |
void |
stop() |
java.lang.String |
toString() |
add, addRecoveredMessage, destroy, getMaxAuditDepth, getMaxBatchSize, getMaxProducersToAudit, getMemoryUsageHighWaterMark, getMessageAudit, getSystemUsage, hasSpace, isCacheEnabled, isDuplicate, isEmpty, isEnableAudit, isFull, isPrioritizedMessageSubscriber, isRecoveryRequired, isStarted, isTransient, isUseCache, pageInList, recordUniqueId, remove, resetForGC, rollback, setCacheEnabled, setEnableAudit, setMaxAuditDepth, setMaxBatchSize, setMaxProducersToAudit, setMemoryUsageHighWaterMark, setMessageAudit, setSystemUsage, setUseCache, tryAddMessageLastclone, 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 java.lang.Exception
start in interface Servicestart in class AbstractPendingMessageCursorjava.lang.Exceptionprotected void resetSize()
public void rebase()
rebase in interface PendingMessageCursorrebase in class AbstractPendingMessageCursorpublic final void stop()
throws java.lang.Exception
stop in interface Servicestop in class AbstractPendingMessageCursorjava.lang.Exceptionpublic final boolean recoverMessage(Message message) throws java.lang.Exception
recoverMessage in interface MessageRecoveryListenerjava.lang.Exceptionpublic boolean recoverMessage(Message message, boolean cached) throws java.lang.Exception
java.lang.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 MessageReference next()
next in interface PendingMessageCursornext in class AbstractPendingMessageCursorpublic boolean addMessageLast(MessageReference node) throws java.lang.Exception
PendingMessageCursoraddMessageLast in interface PendingMessageCursoraddMessageLast in class AbstractPendingMessageCursorjava.io.IOExceptionjava.lang.Exceptionprotected void setBatch(MessageId messageId) throws java.lang.Exception
java.lang.Exceptionpublic void addMessageFirst(MessageReference node) throws java.lang.Exception
PendingMessageCursoraddMessageFirst in interface PendingMessageCursoraddMessageFirst in class AbstractPendingMessageCursorjava.lang.Exceptionpublic final void remove()
PendingMessageCursorremove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorpublic final void remove(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 java.lang.String toString()
toString in class java.lang.Objectprotected abstract void doFillBatch()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void resetBatch()
protected abstract int getStoreSize()
protected abstract boolean isStoreEmpty()
public Subscription getSubscription()
Copyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.