Uses of Interface
org.apache.bookkeeper.mledger.Position
Packages that use Position
Package
Description
-
Uses of Position in org.apache.bookkeeper.mledger
Methods in org.apache.bookkeeper.mledger that return PositionModifier and TypeMethodDescriptionManagedLedger.addEntry(byte[] data) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int numberOfMessages) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int offset, int length) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int numberOfMessages, int offset, int length) Append a new entry to the end of a managed ledger.ManagedCursor.findNewestMatching(Predicate<Entry> condition) Find the newest entry that matches the given predicate.ManagedCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, Predicate<Entry> condition) Find the newest entry that matches the given predicate.ReadOnlyCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, Predicate<Entry> condition) Find the newest entry that matches the given predicate.ManagedCursor.getFirstPosition()Get the first position.ManagedLedger.getLastConfirmedEntry()Gets last confirmed entry of the managed ledger.ManagedCursor.getMarkDeletedPosition()Get the newest mark deleted position on this cursor.Position.getNext()Get the position of the entry next to this one.ManagedCursor.getPersistentMarkDeletedPosition()Get the persistent newest mark deleted position on this cursor.Entry.getPosition()ManagedCursor.getReadPosition()Get the read position.ReadOnlyCursor.getReadPosition()Get the read position.LedgerOffloader.OffloadHandle.lastOffered()ManagedLedger.offloadPrefix(Position pos) Offload as many entries before position as possible to longterm storage.ManagedLedger.terminate()Terminate the managed ledger and return the last committed entry.Methods in org.apache.bookkeeper.mledger that return types with arguments of type PositionModifier and TypeMethodDescriptionManagedLedger.asyncFindPosition(Predicate<Entry> predicate) Find position by sequenceId.ManagedLedger.asyncMigrate()ManagedCursor.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx) Read the specified set of positions from ManagedLedger without ordering.ManagedCursor.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, boolean sortEntries) Read the specified set of positions from ManagedLedger.LedgerOffloader.OffloadHandle.lastOfferedAsync()Methods in org.apache.bookkeeper.mledger with parameters of type PositionModifier and TypeMethodDescriptionvoidAsyncCallbacks.AddEntryCallback.addComplete(Position position, io.netty.buffer.ByteBuf entryData, Object ctx) voidManagedCursor.asyncDelete(Position position, AsyncCallbacks.DeleteCallback callback, Object ctx) Delete a single message asynchronouslyvoidManagedCursor.asyncMarkDelete(Position position, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) Asynchronous mark delete.voidManagedCursor.asyncMarkDelete(Position position, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) Asynchronous mark delete.voidManagedLedger.asyncOffloadPrefix(Position pos, AsyncCallbacks.OffloadCallback callback, Object ctx) Offload as many entries before position as possible to longterm storage.voidManagedLedgerFactory.asyncOpenReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config, AsyncCallbacks.OpenReadOnlyCursorCallback callback, Object ctx) Open aReadOnlyCursorpositioned to the earliest entry for the specified managed ledger.voidManagedCursor.asyncResetCursor(Position position, boolean forceReset, AsyncCallbacks.ResetCursorCallback callback) reset the cursor to specified position to enable replay of messages.voidDelete a single message.voidAsyncCallbacks.FindEntryCallback.findEntryComplete(Position position, Object ctx) voidManagedCursor.markDelete(Position position) This signals that the reader is done with all the entries up to "position" (included).voidManagedCursor.markDelete(Position position, Map<String, Long> properties) This signals that the reader is done with all the entries up to "position" (included).ManagedLedger.newNonDurableCursor(Position startCursorPosition) Creates a new cursor whose metadata is not backed by durable storage.ManagedLedger.newNonDurableCursor(Position startPosition, String subscriptionName) ManagedLedger.newNonDurableCursor(Position startPosition, String subscriptionName, CommandSubscribe.InitialPosition initialPosition, boolean isReadCompacted) voidAsyncCallbacks.OffloadCallback.offloadComplete(Position pos, Object ctx) ManagedLedger.offloadPrefix(Position pos) Offload as many entries before position as possible to longterm storage.ManagedLedgerFactory.openReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config) Open aReadOnlyCursorpositioned to the earliest entry for the specified managed ledger.voidManagedCursor.resetCursor(Position position) reset the cursor to specified position to enable replay of messages.voidAsyncCallbacks.ScanCallback.scanComplete(Position position, ScanOutcome scanOutcome, Object ctx) default voidMove the cursor to a different read position.voidvoidAsyncCallbacks.TerminateCallback.terminateComplete(Position lastCommittedPosition, Object ctx) Method parameters in org.apache.bookkeeper.mledger with type arguments of type PositionModifier and TypeMethodDescriptionvoidManagedCursor.asyncDelete(Iterable<Position> position, AsyncCallbacks.DeleteCallback callback, Object ctx) Delete a group of messages asynchronouslyManagedCursor.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx) Read the specified set of positions from ManagedLedger without ordering.ManagedCursor.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, boolean sortEntries) Read the specified set of positions from ManagedLedger.voidDelete a group of entries.voidAsyncCallbacks.FindEntryCallback.findEntryFailed(ManagedLedgerException exception, Optional<Position> failedReadPosition, Object ctx) ManagedCursor.replayEntries(Set<? extends Position> positions) Read the specified set of positions from ManagedLedger.default CompletableFuture<ScanOutcome>ManagedCursor.scan(Optional<Position> startingPosition, Predicate<Entry> condition, int batchSize, long maxEntries, long timeOutMs) Scan the cursor from the current position up to the end.voidAsyncCallbacks.ScanCallback.scanFailed(ManagedLedgerException exception, Optional<Position> failedReadPosition, Object ctx) -
Uses of Position in org.apache.bookkeeper.mledger.impl
Classes in org.apache.bookkeeper.mledger.impl that implement PositionMethods in org.apache.bookkeeper.mledger.impl that return PositionModifier and TypeMethodDescriptionManagedLedgerImpl.addEntry(byte[] data) ManagedLedgerImpl.addEntry(byte[] data, int numberOfMessages) ManagedLedgerImpl.addEntry(byte[] data, int offset, int length) ManagedLedgerImpl.addEntry(byte[] data, int numberOfMessages, int offset, int length) ManagedCursorImpl.findNewestMatching(Predicate<Entry> condition) ManagedCursorImpl.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, Predicate<Entry> condition) ManagedCursorImpl.getFirstPosition()ManagedLedgerImpl.getLastConfirmedEntry()ManagedCursorImpl.getMarkDeletedPosition()ManagedCursorImpl.getNextLedgerPosition(long currentLedgerId) ManagedCursorImpl.getPersistentMarkDeletedPosition()ManagedCursorImpl.getReadPosition()ManagedLedgerImpl.getTheSlowestNonDurationReadPosition()ManagedLedgerImpl.offloadPrefix(Position pos) ManagedLedgerImpl.terminate()Methods in org.apache.bookkeeper.mledger.impl that return types with arguments of type PositionModifier and TypeMethodDescriptionManagedLedgerImpl.asyncFindPosition(Predicate<Entry> predicate) ManagedLedgerImpl.asyncMigrate()ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx) Async replays given positions: a.ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, boolean sortEntries) Methods in org.apache.bookkeeper.mledger.impl with parameters of type PositionModifier and TypeMethodDescriptionvoidManagedCursorContainer.add(ManagedCursor cursor, Position position) Add a cursor to the container.voidManagedCursorImpl.asyncDelete(Position pos, AsyncCallbacks.DeleteCallback callback, Object ctx) voidManagedCursorImpl.asyncMarkDelete(Position position, Map<String, Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) voidManagedCursorImpl.asyncMarkDelete(Position position, AsyncCallbacks.MarkDeleteCallback callback, Object ctx) voidManagedLedgerImpl.asyncOffloadPrefix(Position pos, AsyncCallbacks.OffloadCallback callback, Object ctx) voidManagedLedgerFactoryImpl.asyncOpenReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config, AsyncCallbacks.OpenReadOnlyCursorCallback callback, Object ctx) voidManagedCursorImpl.asyncResetCursor(Position newPos, boolean forceReset, AsyncCallbacks.ResetCursorCallback callback) 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.voidlong[]ManagedCursorImpl.getBatchPositionAckSet(Position position) booleanManagedCursorImpl.isMessageDeleted(Position position) booleanReadOnlyCursorImpl.isMessageDeleted(Position position) voidManagedCursorImpl.markDelete(Position position) voidManagedCursorImpl.markDelete(Position position, Map<String, Long> properties) ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition) ManagedLedgerImpl.newNonDurableCursor(Position startPosition, String subscriptionName) ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition, String cursorName, CommandSubscribe.InitialPosition initialPosition, boolean isReadCompacted) ManagedLedgerImpl.offloadPrefix(Position pos) voidManagedLedgerImpl.onCursorReadPositionUpdated(ManagedCursorImpl cursor, Position newReadPosition) ManagedLedgerFactoryImpl.openReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config) voidManagedCursorImpl.resetCursor(Position newPos) voidMethod parameters in org.apache.bookkeeper.mledger.impl with type arguments of type PositionModifier and TypeMethodDescriptionvoidManagedCursorImpl.asyncDelete(Iterable<Position> positions, AsyncCallbacks.DeleteCallback callback, Object ctx) ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx) Async replays given positions: a.ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, Object ctx, boolean sortEntries) voidManagedCursorImpl.replayEntries(Set<? extends Position> positions) ManagedCursorImpl.scan(Optional<Position> position, Predicate<Entry> condition, int batchSize, long maxEntries, long timeOutMs) -
Uses of Position in org.apache.bookkeeper.mledger.util
Methods in org.apache.bookkeeper.mledger.util that return types with arguments of type PositionModifier and TypeMethodDescriptionstatic CompletableFuture<Position>ManagedLedgerImplUtils.asyncGetLastValidPosition(ManagedLedgerImpl ledger, Predicate<Entry> predicate, PositionImpl startPosition) Reverse find last valid position one-entry by one-entry.