Class NonDurableCursorImpl
- java.lang.Object
-
- org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
-
- org.apache.bookkeeper.mledger.impl.NonDurableCursorImpl
-
- All Implemented Interfaces:
ManagedCursor
public class NonDurableCursorImpl extends ManagedCursorImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
ManagedCursorImpl.VoidCallback
-
Nested 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
bookkeeper, config, FALSE, LAST_MARK_DELETE_ENTRY_UPDATER, lastMarkDeleteEntry, ledger, markDeletePosition, mbean, messagesConsumedCounter, pendingMarkDeleteOps, persistentMarkDeletePosition, READ_POSITION_UPDATER, readPosition, state, statsLastReadPosition, TRUE, WAITING_READ_OP_UPDATER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasyncClose(AsyncCallbacks.CloseCallback callback, java.lang.Object ctx)Close the cursor asynchronously and release the associated resources.voidasyncDeleteCursor(java.lang.String consumerName, AsyncCallbacks.DeleteCursorCallback callback, java.lang.Object ctx)protected voidinternalAsyncMarkDelete(PositionImpl newPosition, java.util.Map<java.lang.String,java.lang.Long> properties, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)booleanisDurable()Tells whether the cursor is durable or just kept in memory.java.lang.StringtoString()-
Methods inherited from class org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
asyncClearBacklog, asyncDelete, asyncDelete, asyncFindNewestMatching, asyncGetNthEntry, asyncMarkDelete, asyncMarkDelete, asyncReadEntries, asyncReadEntries, asyncReadEntriesOrWait, asyncReadEntriesOrWait, asyncReplayEntries, asyncReplayEntries, asyncResetCursor, asyncSkipEntries, cancelPendingReadRequest, checkAndUpdateReadPositionChanged, clearBacklog, close, delete, delete, findNewestMatching, findNewestMatching, getBatchPositionAckSet, getCursorLedger, getCursorLedgerLastEntry, 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, isClosed, isIndividuallyDeletedEntriesEmpty, isMessageDeleted, markDelete, markDelete, readEntries, readEntriesOrWait, readEntriesOrWait, recoverFromLedger, replayEntries, resetCursor, rewind, seek, setActive, setAlwaysInactive, setInactive, setThrottleMarkDelete, skipEntries, trimDeletedEntries, updateLastActive
-
-
-
-
Method Detail
-
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, java.util.Map<java.lang.String,java.lang.Long> properties, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)
- Overrides:
internalAsyncMarkDeletein classManagedCursorImpl
-
asyncClose
public void asyncClose(AsyncCallbacks.CloseCallback callback, java.lang.Object ctx)
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(java.lang.String consumerName, AsyncCallbacks.DeleteCursorCallback callback, java.lang.Object ctx)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classManagedCursorImpl
-
-