类的使用
org.apache.bookkeeper.mledger.impl.PositionImpl
使用PositionImpl的程序包
程序包
说明
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
-
org.apache.bookkeeper.mledger中PositionImpl的使用
返回变量类型为PositionImpl的类型的org.apache.bookkeeper.mledger中的方法修饰符和类型方法说明com.google.common.collect.Range<PositionImpl>ManagedCursor.getLastIndividualDeletedRange()Get last individual deleted range.修饰符和类型方法说明voidManagedCursor.asyncReadEntries(int numberOfEntriesToRead, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) Asynchronously read entries from the ManagedLedger.voidManagedCursor.asyncReadEntries(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) Asynchronously read entries from the ManagedLedger.voidReadOnlyCursor.asyncReadEntries(int numberOfEntriesToRead, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) Asynchronously read entries from the ManagedLedger.voidReadOnlyCursor.asyncReadEntries(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) Asynchronously read entries from the ManagedLedger.voidManagedCursor.asyncReadEntriesOrWait(int maxEntries, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) Asynchronously read entries from the ManagedLedger, up to the specified number and size.voidManagedCursor.asyncReadEntriesOrWait(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) Asynchronously read entries from the ManagedLedger.long[]ManagedCursor.getDeletedBatchIndexesAsLongArray(PositionImpl position) Get deleted batch indexes list for a batch message.类型变量类型为PositionImpl的org.apache.bookkeeper.mledger中的方法参数修饰符和类型方法说明longReadOnlyCursor.getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range) Return the number of messages that this cursor still has to read. -
org.apache.bookkeeper.mledger.impl中PositionImpl的使用
修饰符和类型字段说明static final PositionImplPositionImpl.EARLIESTprotected PositionImplManagedCursorImpl.inProgressMarkDeletePersistPositionstatic final PositionImplPositionImpl.LATESTprotected PositionImplManagedCursorImpl.markDeletePositionprotected PositionImplManagedCursorImpl.persistentMarkDeletePositionprotected PositionImplManagedCursorImpl.readPositionprotected PositionImplManagedCursorImpl.statsLastReadPosition类型参数类型为PositionImpl的org.apache.bookkeeper.mledger.impl中的字段修饰符和类型字段说明protected static final AtomicReferenceFieldUpdater<ManagedCursorImpl,PositionImpl> ManagedCursorImpl.INPROGRESS_MARKDELETE_PERSIST_POSITION_UPDATERprotected static final AtomicReferenceFieldUpdater<ManagedCursorImpl,PositionImpl> ManagedCursorImpl.READ_POSITION_UPDATER修饰符和类型方法说明static PositionImplPositionImpl.get(long ledgerId, long entryId) static PositionImplPositionImpl.get(long ledgerId, long entryId, long[] ackSet) static PositionImplPositionImpl.get(PositionImpl other) ManagedLedgerImpl.getFirstPosition()PositionImpl.getNext()ManagedCursorImpl.getNextAvailablePosition(PositionImpl position) Checks given position is part of deleted-range and returns next position of upper-end as all the messages are deleted up to that point.ManagedLedgerImpl.getNextValidPosition(PositionImpl position) ManagedLedgerImpl.getNextValidPositionInternal(PositionImpl position) EntryImpl.getPosition()ManagedLedgerImpl.getPositionAfterN(PositionImpl startPosition, long n, ManagedLedgerImpl.PositionBound startRange) Get the entry position at a given distance from a given position.ManagedLedgerImpl.getPreviousPosition(PositionImpl position) Get the entry position that come before the specified position in the message stream, using information from the ledger list and each ledger entries count.ManagedCursorContainer.getSlowestReaderPosition()Get the slowest reader position for the cursors that are ordered.返回变量类型为PositionImpl的类型的org.apache.bookkeeper.mledger.impl中的方法修饰符和类型方法说明org.apache.commons.lang3.tuple.Pair<PositionImpl,PositionImpl> ManagedCursorContainer.cursorUpdated(ManagedCursor cursor, Position newPosition) Signal that a cursor position has been updated and that the container must re-order the cursor heap tracking the slowest reader.org.apache.commons.lang3.tuple.Pair<PositionImpl,PositionImpl> ManagedCursorContainer.cursorUpdated(ManagedCursor cursor, Position newPosition) Signal that a cursor position has been updated and that the container must re-order the cursor heap tracking the slowest reader.org.apache.pulsar.common.util.collections.LongPairRangeSet<PositionImpl>ManagedCursorImpl.getIndividuallyDeletedMessagesSet()com.google.common.collect.Range<PositionImpl>ManagedCursorImpl.getLastIndividualDeletedRange()修饰符和类型方法说明voidManagedCursorImpl.asyncReadEntries(int numberOfEntriesToRead, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) voidManagedCursorImpl.asyncReadEntries(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) voidManagedCursorImpl.asyncReadEntriesOrWait(int maxEntries, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) voidManagedCursorImpl.asyncReadEntriesOrWait(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, PositionImpl maxPosition) protected voidManagedLedgerImpl.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle ledger, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, Object ctx) voidManagedLedgerImpl.asyncReadEntry(PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, Object ctx) voidReadOnlyManagedLedgerImpl.asyncReadEntry(PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, Object ctx) intPositionImpl.compareTo(PositionImpl other) static EntryImplEntryImpl.create(PositionImpl position, io.netty.buffer.ByteBuf data) static PositionImplPositionImpl.get(PositionImpl other) long[]ManagedCursorImpl.getDeletedBatchIndexesAsLongArray(PositionImpl position) ManagedLedgerImpl.getEarliestMessagePublishTimeOfPos(PositionImpl pos) longManagedLedgerImpl.getEstimatedBacklogSize(PositionImpl pos) Get estimated backlog size from a specific position.ManagedCursorImpl.getNextAvailablePosition(PositionImpl position) Checks given position is part of deleted-range and returns next position of upper-end as all the messages are deleted up to that point.ManagedLedgerImpl.getNextValidPosition(PositionImpl position) ManagedLedgerImpl.getNextValidPositionInternal(PositionImpl position) ManagedLedgerImpl.getPositionAfterN(PositionImpl startPosition, long n, ManagedLedgerImpl.PositionBound startRange) Get the entry position at a given distance from a given position.ManagedLedgerImpl.getPreviousPosition(PositionImpl position) Get the entry position that come before the specified position in the message stream, using information from the ledger list and each ledger entries count.booleanManagedLedgerImpl.hasMoreEntries(PositionImpl position) protected voidManagedCursorImpl.internalAsyncMarkDelete(PositionImpl newPosition, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) protected voidNonDurableCursorImpl.internalAsyncMarkDelete(PositionImpl newPosition, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) protected voidManagedCursorImpl.internalResetCursor(PositionImpl proposedReadPosition, AsyncCallbacks.ResetCursorCallback resetCursorCallback) booleanManagedLedgerImpl.isValidPosition(PositionImpl position) Validate whether a specified position is valid for the current managed ledger.类型变量类型为PositionImpl的org.apache.bookkeeper.mledger.impl中的方法参数修饰符和类型方法说明protected longManagedCursorImpl.getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range) longReadOnlyCursorImpl.getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range) 限定符构造器说明PositionImpl(PositionImpl other) ReadOnlyCursorImpl(org.apache.bookkeeper.client.BookKeeper bookkeeper, ManagedLedgerConfig config, ManagedLedgerImpl ledger, PositionImpl startPosition, String cursorName) -
org.apache.bookkeeper.mledger.impl.cache中PositionImpl的使用
修饰符和类型方法说明voidEntryCache.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, Object ctx) Read entry at given position from the cache or from bookkeeper.voidEntryCacheDisabled.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, Object ctx) voidRangeEntryCacheImpl.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, Object ctx) voidEntryCache.invalidateEntries(PositionImpl lastPosition) Remove from cache all the entries related to a ledger up to lastPosition included.voidEntryCacheDisabled.invalidateEntries(PositionImpl lastPosition) voidRangeEntryCacheImpl.invalidateEntries(PositionImpl lastPosition) -
org.apache.bookkeeper.mledger.util中PositionImpl的使用
修饰符和类型方法说明static voidPositionAckSetUtil.andAckSet(PositionImpl currentPosition, PositionImpl otherPosition) static intPositionAckSetUtil.compareToWithAckSet(PositionImpl currentPosition, PositionImpl otherPosition)