类 ReadOnlyCursorImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedCursorImpl
org.apache.bookkeeper.mledger.impl.ReadOnlyCursorImpl
- 所有已实现的接口:
ManagedCursor,ReadOnlyCursor
-
嵌套类概要
从类继承的嵌套类/接口 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 -
构造器概要
构造器构造器说明ReadOnlyCursorImpl(org.apache.bookkeeper.client.BookKeeper bookkeeper, ManagedLedgerConfig config, ManagedLedgerImpl ledger, PositionImpl startPosition, String cursorName) -
方法概要
修饰符和类型方法说明voidasyncClose(AsyncCallbacks.CloseCallback callback, Object ctx) Close the cursor asynchronously and release the associated resources.longgetNumberOfEntries(com.google.common.collect.Range<PositionImpl> range) Return the number of messages that this cursor still has to read.voidskipEntries(int numEntriesToSkip) Skip n entries from the read position of this cursor.从类继承的方法 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, getNumberOfEntriesInBacklog, getNumberOfEntriesInStorage, getNumberOfEntriesSinceFirstNotAckedMessage, getPendingReadOpsCount, getPersistentMarkDeletedPosition, getProperties, getReadPosition, getState, getStats, getThrottleMarkDelete, getTotalNonContiguousDeletedMessagesRange, hasMoreEntries, hasPendingReadRequest, internalAsyncMarkDelete, internalResetCursor, isActive, isBkErrorNotRecoverable, isClosed, isDurable, isIndividuallyDeletedEntriesEmpty, isMessageDeleted, markDelete, markDelete, putProperty, readEntries, readEntriesOrWait, readEntriesOrWait, recoverFromLedger, removeProperty, replayEntries, resetCursor, rewind, seek, setActive, setAlwaysInactive, setCursorProperties, setInactive, setState, setThrottleMarkDelete, skipEntries, toString, trimDeletedEntries, updateLastActive从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.apache.bookkeeper.mledger.ManagedCursor
seek从接口继承的方法 org.apache.bookkeeper.mledger.ReadOnlyCursor
asyncReadEntries, asyncReadEntries, close, findNewestMatching, getNumberOfEntries, getReadPosition, hasMoreEntries, readEntries
-
构造器详细资料
-
ReadOnlyCursorImpl
public ReadOnlyCursorImpl(org.apache.bookkeeper.client.BookKeeper bookkeeper, ManagedLedgerConfig config, ManagedLedgerImpl ledger, PositionImpl startPosition, String cursorName)
-
-
方法详细资料
-
skipEntries
public void skipEntries(int numEntriesToSkip) 从接口复制的说明:ReadOnlyCursorSkip n entries from the read position of this cursor.- 指定者:
skipEntries在接口中ReadOnlyCursor- 参数:
numEntriesToSkip- number of entries to skip
-
asyncClose
从接口复制的说明:ManagedCursorClose the cursor asynchronously and release the associated resources.- 指定者:
asyncClose在接口中ManagedCursor- 指定者:
asyncClose在接口中ReadOnlyCursor- 覆盖:
asyncClose在类中ManagedCursorImpl- 参数:
callback- callback objectctx- opaque context
-
getCurrentLedgerInfo
-
getNumberOfEntries
从接口复制的说明:ReadOnlyCursorReturn the number of messages that this cursor still has to read. This method has linear time complexity on the number of ledgers included in the managed ledger.- 指定者:
getNumberOfEntries在接口中ReadOnlyCursor- 覆盖:
getNumberOfEntries在类中ManagedCursorImpl- 参数:
range- the range between two positions- 返回:
- the number of entries in range
-