Uses of Class
org.apache.bookkeeper.mledger.impl.PositionImpl
-
Packages that use PositionImpl Package Description org.apache.bookkeeper.mledger Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.org.apache.bookkeeper.mledger.impl Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.org.apache.bookkeeper.mledger.util Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. -
-
Uses of PositionImpl in org.apache.bookkeeper.mledger
Methods in org.apache.bookkeeper.mledger that return types with arguments of type PositionImpl Modifier and Type Method Description com.google.common.collect.Range<PositionImpl>ManagedCursor. getLastIndividualDeletedRange()Get last individual deleted rangeMethods in org.apache.bookkeeper.mledger with parameters of type PositionImpl Modifier and Type Method Description voidManagedCursor. asyncReadEntries(int numberOfEntriesToRead, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)Asynchronously read entries from the ManagedLedger.voidManagedCursor. asyncReadEntries(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)Asynchronously read entries from the ManagedLedger.voidReadOnlyCursor. asyncReadEntries(int numberOfEntriesToRead, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)Asynchronously read entries from the ManagedLedger.voidReadOnlyCursor. asyncReadEntries(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)Asynchronously read entries from the ManagedLedger.voidManagedCursor. asyncReadEntriesOrWait(int maxEntries, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)Asynchronously read entries from the ManagedLedger, up to the specified number and size.voidManagedCursor. asyncReadEntriesOrWait(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)Asynchronously read entries from the ManagedLedger.long[]ManagedCursor. getDeletedBatchIndexesAsLongArray(PositionImpl position)Get deleted batch indexes list for a batch message.Method parameters in org.apache.bookkeeper.mledger with type arguments of type PositionImpl Modifier and Type Method Description longReadOnlyCursor. getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range)Return the number of messages that this cursor still has to read. -
Uses of PositionImpl in org.apache.bookkeeper.mledger.impl
Subclasses of PositionImpl in org.apache.bookkeeper.mledger.impl Modifier and Type Class Description classPositionImplRecyclableFields in org.apache.bookkeeper.mledger.impl declared as PositionImpl Modifier and Type Field Description static PositionImplPositionImpl. earlieststatic PositionImplPositionImpl. latestprotected PositionImplManagedCursorImpl. markDeletePositionprotected PositionImplManagedCursorImpl. persistentMarkDeletePositionprotected PositionImplManagedCursorImpl. readPositionprotected PositionImplManagedCursorImpl. statsLastReadPositionFields in org.apache.bookkeeper.mledger.impl with type parameters of type PositionImpl Modifier and Type Field Description protected static java.util.concurrent.atomic.AtomicReferenceFieldUpdater<ManagedCursorImpl,PositionImpl>ManagedCursorImpl. READ_POSITION_UPDATERMethods in org.apache.bookkeeper.mledger.impl that return PositionImpl Modifier and Type Method Description static PositionImplPositionImpl. get(long ledgerId, long entryId)static PositionImplPositionImpl. get(long ledgerId, long entryId, long[] ackSet)static PositionImplPositionImpl. get(PositionImpl other)PositionImplManagedLedgerImpl. getFirstPosition()PositionImplPositionImpl. getNext()PositionImplManagedCursorImpl. 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.PositionImplManagedLedgerImpl. getNextValidPosition(PositionImpl position)PositionImplManagedLedgerImpl. getNextValidPositionInternal(PositionImpl position)PositionImplEntryImpl. getPosition()PositionImplManagedLedgerImpl. getPositionAfterN(PositionImpl startPosition, long n, ManagedLedgerImpl.PositionBound startRange)Get the entry position at a given distance from a given position.PositionImplManagedLedgerImpl. 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.PositionImplManagedCursorContainer. getSlowestReaderPosition()Get the slowest reader position, meaning older acknowledged position between all the cursors.Methods in org.apache.bookkeeper.mledger.impl that return types with arguments of type PositionImpl Modifier and Type Method Description 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 list.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 list.org.apache.pulsar.common.util.collections.LongPairRangeSet<PositionImpl>ManagedCursorImpl. getIndividuallyDeletedMessagesSet()com.google.common.collect.Range<PositionImpl>ManagedCursorImpl. getLastIndividualDeletedRange()Methods in org.apache.bookkeeper.mledger.impl with parameters of type PositionImpl Modifier and Type Method Description voidManagedCursorImpl. asyncReadEntries(int numberOfEntriesToRead, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)voidManagedCursorImpl. asyncReadEntries(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)voidManagedCursorImpl. asyncReadEntriesOrWait(int maxEntries, long maxSizeBytes, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)voidManagedCursorImpl. asyncReadEntriesOrWait(int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, PositionImpl maxPosition)voidEntryCache. asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, java.lang.Object ctx)Read entry at given position from the cache or from bookkeeper.voidEntryCacheImpl. asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, java.lang.Object ctx)voidEntryCacheManager.EntryCacheDisabled. asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, java.lang.Object ctx)protected voidManagedLedgerImpl. asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle ledger, PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, java.lang.Object ctx)voidManagedLedgerImpl. asyncReadEntry(PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, java.lang.Object ctx)voidReadOnlyManagedLedgerImpl. asyncReadEntry(PositionImpl position, AsyncCallbacks.ReadEntryCallback callback, java.lang.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)longManagedLedgerImpl. getEstimatedBacklogSize(PositionImpl pos)Get estimated backlog size from a specific position.PositionImplManagedCursorImpl. 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.PositionImplManagedLedgerImpl. getNextValidPosition(PositionImpl position)PositionImplManagedLedgerImpl. getNextValidPositionInternal(PositionImpl position)PositionImplManagedLedgerImpl. getPositionAfterN(PositionImpl startPosition, long n, ManagedLedgerImpl.PositionBound startRange)Get the entry position at a given distance from a given position.PositionImplManagedLedgerImpl. 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, java.util.Map<java.lang.String,java.lang.Long> properties, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)protected voidNonDurableCursorImpl. internalAsyncMarkDelete(PositionImpl newPosition, java.util.Map<java.lang.String,java.lang.Long> properties, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)protected voidManagedCursorImpl. internalResetCursor(PositionImpl position, AsyncCallbacks.ResetCursorCallback resetCursorCallback)voidEntryCache. invalidateEntries(PositionImpl lastPosition)Remove from cache all the entries related to a ledger up to lastPosition included.voidEntryCacheImpl. invalidateEntries(PositionImpl lastPosition)voidEntryCacheManager.EntryCacheDisabled. invalidateEntries(PositionImpl lastPosition)booleanManagedLedgerImpl. isValidPosition(PositionImpl position)Validate whether a specified position is valid for the current managed ledger.Method parameters in org.apache.bookkeeper.mledger.impl with type arguments of type PositionImpl Modifier and Type Method Description protected longManagedCursorImpl. getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range)longReadOnlyCursorImpl. getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range)Constructors in org.apache.bookkeeper.mledger.impl with parameters of type PositionImpl Constructor Description PositionImpl(PositionImpl other)ReadOnlyCursorImpl(org.apache.bookkeeper.client.BookKeeper bookkeeper, ManagedLedgerConfig config, ManagedLedgerImpl ledger, PositionImpl startPosition, java.lang.String cursorName) -
Uses of PositionImpl in org.apache.bookkeeper.mledger.util
Methods in org.apache.bookkeeper.mledger.util with parameters of type PositionImpl Modifier and Type Method Description static voidPositionAckSetUtil. andAckSet(PositionImpl currentPosition, PositionImpl otherPosition)static intPositionAckSetUtil. compareToWithAckSet(PositionImpl currentPosition, PositionImpl otherPosition)
-