类 NonDurableCursorImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
org.apache.bookkeeper.mledger.impl.NonDurableCursorImpl
- 所有已实现的接口:
ManagedCursor
-
嵌套类概要
从类继承的嵌套类/接口 org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
ManagedCursorImpl.State, ManagedCursorImpl.VoidCallback从接口继承的嵌套类/接口 org.apache.bookkeeper.mledger.ManagedCursor
ManagedCursor.FindPositionConstraint, ManagedCursor.IndividualDeletedEntries -
字段概要
从类继承的字段 org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
bookkeeper, config, FALSE, 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 -
方法概要
修饰符和类型方法说明voidasyncClose(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()从类继承的方法 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, 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, isClosed, isIndividuallyDeletedEntriesEmpty, isMessageDeleted, markDelete, markDelete, putProperty, readEntries, readEntriesOrWait, readEntriesOrWait, recoverFromLedger, removeProperty, replayEntries, resetCursor, seek, setActive, setAlwaysInactive, setCursorProperties, setInactive, setState, setThrottleMarkDelete, skipEntries, trimDeletedEntries, updateLastActive从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.apache.bookkeeper.mledger.ManagedCursor
seek
-
方法详细资料
-
isDurable
public boolean isDurable()从接口复制的说明:ManagedCursorTells whether the cursor is durable or just kept in memory.- 指定者:
isDurable在接口中ManagedCursor- 覆盖:
isDurable在类中ManagedCursorImpl
-
internalAsyncMarkDelete
protected void internalAsyncMarkDelete(PositionImpl newPosition, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) -
asyncClose
从接口复制的说明:ManagedCursorClose the cursor asynchronously and release the associated resources.- 指定者:
asyncClose在接口中ManagedCursor- 覆盖:
asyncClose在类中ManagedCursorImpl- 参数:
callback- callback objectctx- opaque context
-
asyncDeleteCursor
public void asyncDeleteCursor(String consumerName, AsyncCallbacks.DeleteCursorCallback callback, Object ctx) -
isReadCompacted
public boolean isReadCompacted() -
rewind
public void rewind()从接口复制的说明: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.- 指定者:
rewind在接口中ManagedCursor- 覆盖:
rewind在类中ManagedCursorImpl
-
toString
- 覆盖:
toString在类中ManagedCursorImpl
-