Class NonDurableCursorImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
org.apache.bookkeeper.mledger.impl.NonDurableCursorImpl
- All Implemented Interfaces:
ManagedCursor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
ManagedCursorImpl.State, ManagedCursorImpl.VoidCallbackNested classes/interfaces inherited from interface org.apache.bookkeeper.mledger.ManagedCursor
ManagedCursor.FindPositionConstraint, ManagedCursor.IndividualDeletedEntries -
Field Summary
Fields inherited from class org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
batchDeletedIndexes, bookkeeper, config, CURSOR_INTERNAL_PROPERTY_PREFIX, FALSE, individualDeletedMessages, INPROGRESS_MARKDELETE_PERSIST_POSITION_UPDATER, inProgressMarkDeletePersistPosition, LAST_MARK_DELETE_ENTRY_UPDATER, lastMarkDeleteEntry, ledger, markDeletePosition, mbean, messagesConsumedCounter, pendingMarkDeleteOps, persistentMarkDeletePosition, READ_POSITION_UPDATER, readPosition, state, STATE_UPDATER, statsLastReadPosition, TRUE, WAITING_READ_OP_UPDATER -
Method Summary
Modifier and TypeMethodDescriptionvoidasyncClose(AsyncCallbacks.CloseCallback callback, Object ctx) Close the cursor asynchronously and release the associated resources.voidasyncDeleteCursor(String consumerName, AsyncCallbacks.DeleteCursorCallback callback, Object ctx) protected voidinternalAsyncMarkDelete(PositionImpl newPosition, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) booleanTells whether the cursor is durable or just kept in memory.booleanvoidrewind()Rewind the cursor to the mark deleted position to replay all the already read but not yet mark deleted messages.toString()Methods inherited from class org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
applyMaxSizeCap, asyncClearBacklog, asyncDelete, asyncDelete, asyncFindNewestMatching, asyncFindNewestMatching, asyncGetNthEntry, asyncMarkDelete, asyncMarkDelete, asyncReadEntries, asyncReadEntries, asyncReadEntriesOrWait, asyncReadEntriesOrWait, asyncReadEntriesWithSkip, asyncReadEntriesWithSkipOrWait, asyncReadEntriesWithSkipOrWait, asyncReplayEntries, asyncReplayEntries, asyncResetCursor, asyncSkipEntries, cancelPendingReadRequest, checkAndUpdateReadPositionChanged, clearBacklog, close, delete, delete, duplicateNonDurableCursor, findNewestMatching, findNewestMatching, getBatchPositionAckSet, getConfig, getCursorLedger, getCursorLedgerLastEntry, getCursorProperties, getDeletedBatchIndexesAsLongArray, getEstimatedSizeSinceMarkDeletePosition, getFirstPosition, getIndividuallyDeletedMessages, getIndividuallyDeletedMessagesSet, getLastActive, getLastIndividualDeletedRange, getLastLedgerSwitchTimestamp, getManagedLedger, getMarkDeletedPosition, getMessagesConsumedCounter, getName, getNextAvailablePosition, getNextLedgerPosition, getNonContiguousDeletedMessagesRangeSerializedSize, getNthEntry, getNumberOfEntries, getNumberOfEntries, getNumberOfEntriesInBacklog, getNumberOfEntriesInStorage, getNumberOfEntriesSinceFirstNotAckedMessage, getPendingReadOpsCount, getPersistentMarkDeletedPosition, getProperties, getReadPosition, getState, getStats, getThrottleMarkDelete, getTotalNonContiguousDeletedMessagesRange, hasMoreEntries, hasPendingReadRequest, internalResetCursor, isActive, isBkErrorNotRecoverable, isCacheReadEntry, isClosed, isIndividuallyDeletedEntriesEmpty, isMessageDeleted, markDelete, markDelete, putCursorProperty, putProperty, readEntries, readEntriesOrWait, readEntriesOrWait, recoverFromLedger, removeCursorProperty, removeProperty, replayEntries, resetCursor, rewind, scan, seek, setActive, setAlwaysInactive, setCacheReadEntry, setCursorProperties, setInactive, setState, setThrottleMarkDelete, skipEntries, skipNonRecoverableLedger, trimDeletedEntries, updateLastActive, updateReadStatsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.bookkeeper.mledger.ManagedCursor
seek
-
Method Details
-
isDurable
public boolean isDurable()Description copied from interface:ManagedCursorTells whether the cursor is durable or just kept in memory.- Specified by:
isDurablein interfaceManagedCursor- Overrides:
isDurablein classManagedCursorImpl
-
internalAsyncMarkDelete
protected void internalAsyncMarkDelete(PositionImpl newPosition, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) - Overrides:
internalAsyncMarkDeletein classManagedCursorImpl
-
asyncClose
Description copied from interface:ManagedCursorClose the cursor asynchronously and release the associated resources.- Specified by:
asyncClosein interfaceManagedCursor- Overrides:
asyncClosein classManagedCursorImpl- Parameters:
callback- callback objectctx- opaque context
-
asyncDeleteCursor
public void asyncDeleteCursor(String consumerName, AsyncCallbacks.DeleteCursorCallback callback, Object ctx) -
isReadCompacted
public boolean isReadCompacted() -
rewind
public void rewind()Description copied from interface:ManagedCursorRewind the cursor to the mark deleted position to replay all the already read but not yet mark deleted messages. The next message to be read is the one after the current mark deleted message.- Specified by:
rewindin interfaceManagedCursor- Overrides:
rewindin classManagedCursorImpl
-
toString
- Overrides:
toStringin classManagedCursorImpl
-