Uses of Interface
org.apache.bookkeeper.mledger.Position
-
Packages that use Position 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. -
-
Uses of Position in org.apache.bookkeeper.mledger
Methods in org.apache.bookkeeper.mledger that return Position Modifier and Type Method Description PositionManagedLedger. addEntry(byte[] data)Append a new entry to the end of a managed ledger.PositionManagedLedger. addEntry(byte[] data, int numberOfMessages)Append a new entry to the end of a managed ledger.PositionManagedLedger. addEntry(byte[] data, int offset, int length)Append a new entry to the end of a managed ledger.PositionManagedLedger. addEntry(byte[] data, int numberOfMessages, int offset, int length)Append a new entry to the end of a managed ledger.PositionManagedCursor. findNewestMatching(com.google.common.base.Predicate<Entry> condition)Find the newest entry that matches the given predicate.PositionManagedCursor. findNewestMatching(ManagedCursor.FindPositionConstraint constraint, com.google.common.base.Predicate<Entry> condition)Find the newest entry that matches the given predicate.PositionReadOnlyCursor. findNewestMatching(ManagedCursor.FindPositionConstraint constraint, com.google.common.base.Predicate<Entry> condition)Find the newest entry that matches the given predicate.PositionManagedCursor. getFirstPosition()Get the first position.PositionManagedLedger. getLastConfirmedEntry()Gets last confirmed entry of the managed ledger.PositionManagedCursor. getMarkDeletedPosition()Get the newest mark deleted position on this cursor.PositionPosition. getNext()Get the position of the entry next to this one.PositionManagedCursor. getPersistentMarkDeletedPosition()Get the persistent newest mark deleted position on this cursor.PositionEntry. getPosition()PositionManagedCursor. getReadPosition()Get the read position.PositionReadOnlyCursor. getReadPosition()Get the read position.PositionLedgerOffloader.OffloadHandle. lastOffered()PositionManagedLedger. offloadPrefix(Position pos)Offload as many entries before position as possible to longterm storage.PositionManagedLedger. terminate()Terminate the managed ledger and return the last committed entry.Methods in org.apache.bookkeeper.mledger that return types with arguments of type Position Modifier and Type Method Description java.util.concurrent.CompletableFuture<Position>ManagedLedger. asyncFindPosition(com.google.common.base.Predicate<Entry> predicate)Find position by sequenceId.java.util.Set<? extends Position>ManagedCursor. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx)Read the specified set of positions from ManagedLedger without ordering.java.util.Set<? extends Position>ManagedCursor. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, boolean sortEntries)Read the specified set of positions from ManagedLedger.java.util.concurrent.CompletableFuture<Position>LedgerOffloader.OffloadHandle. lastOfferedAsync()Methods in org.apache.bookkeeper.mledger with parameters of type Position Modifier and Type Method Description voidAsyncCallbacks.AddEntryCallback. addComplete(Position position, io.netty.buffer.ByteBuf entryData, java.lang.Object ctx)voidManagedCursor. asyncDelete(Position position, AsyncCallbacks.DeleteCallback callback, java.lang.Object ctx)Delete a single message asynchronouslyvoidManagedCursor. asyncMarkDelete(Position position, java.util.Map<java.lang.String,java.lang.Long> properties, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)Asynchronous mark delete.voidManagedCursor. asyncMarkDelete(Position position, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)Asynchronous mark delete.voidManagedLedger. asyncOffloadPrefix(Position pos, AsyncCallbacks.OffloadCallback callback, java.lang.Object ctx)Offload as many entries before position as possible to longterm storage.voidManagedLedgerFactory. asyncOpenReadOnlyCursor(java.lang.String managedLedgerName, Position startPosition, ManagedLedgerConfig config, AsyncCallbacks.OpenReadOnlyCursorCallback callback, java.lang.Object ctx)Open aReadOnlyCursorpositioned to the earliest entry for the specified managed ledgervoidManagedCursor. asyncResetCursor(Position position, AsyncCallbacks.ResetCursorCallback callback)reset the cursor to specified position to enable replay of messages.voidManagedCursor. delete(Position position)Delete a single message.voidAsyncCallbacks.FindEntryCallback. findEntryComplete(Position position, java.lang.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, java.util.Map<java.lang.String,java.lang.Long> properties)This signals that the reader is done with all the entries up to "position" (included).ManagedCursorManagedLedger. newNonDurableCursor(Position startCursorPosition)Creates a new cursor whose metadata is not backed by durable storage.ManagedCursorManagedLedger. newNonDurableCursor(Position startPosition, java.lang.String subscriptionName)ManagedCursorManagedLedger. newNonDurableCursor(Position startPosition, java.lang.String subscriptionName, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition)voidAsyncCallbacks.OffloadCallback. offloadComplete(Position pos, java.lang.Object ctx)PositionManagedLedger. offloadPrefix(Position pos)Offload as many entries before position as possible to longterm storage.ReadOnlyCursorManagedLedgerFactory. openReadOnlyCursor(java.lang.String managedLedgerName, Position startPosition, ManagedLedgerConfig config)Open aReadOnlyCursorpositioned to the earliest entry for the specified managed ledgervoidManagedCursor. resetCursor(Position position)reset the cursor to specified position to enable replay of messages.voidManagedCursor. seek(Position newReadPosition)Move the cursor to a different read position.voidAsyncCallbacks.TerminateCallback. terminateComplete(Position lastCommittedPosition, java.lang.Object ctx)Method parameters in org.apache.bookkeeper.mledger with type arguments of type Position Modifier and Type Method Description voidManagedCursor. asyncDelete(java.lang.Iterable<Position> position, AsyncCallbacks.DeleteCallback callback, java.lang.Object ctx)Delete a group of messages asynchronouslyjava.util.Set<? extends Position>ManagedCursor. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx)Read the specified set of positions from ManagedLedger without ordering.java.util.Set<? extends Position>ManagedCursor. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, boolean sortEntries)Read the specified set of positions from ManagedLedger.voidManagedCursor. delete(java.lang.Iterable<Position> positions)Delete a group of entries.voidAsyncCallbacks.FindEntryCallback. findEntryFailed(ManagedLedgerException exception, java.util.Optional<Position> failedReadPosition, java.lang.Object ctx)java.util.List<Entry>ManagedCursor. replayEntries(java.util.Set<? extends Position> positions)Read the specified set of positions from ManagedLedger. -
Uses of Position in org.apache.bookkeeper.mledger.impl
Classes in org.apache.bookkeeper.mledger.impl that implement Position Modifier and Type Class Description classPositionImplclassPositionImplRecyclableMethods in org.apache.bookkeeper.mledger.impl that return Position Modifier and Type Method Description PositionManagedLedgerImpl. addEntry(byte[] data)PositionManagedLedgerImpl. addEntry(byte[] data, int numberOfMessages)PositionManagedLedgerImpl. addEntry(byte[] data, int offset, int length)PositionManagedLedgerImpl. addEntry(byte[] data, int numberOfMessages, int offset, int length)PositionManagedCursorImpl. findNewestMatching(com.google.common.base.Predicate<Entry> condition)PositionManagedCursorImpl. findNewestMatching(ManagedCursor.FindPositionConstraint constraint, com.google.common.base.Predicate<Entry> condition)PositionManagedCursorImpl. getFirstPosition()PositionManagedLedgerImpl. getLastConfirmedEntry()PositionManagedCursorImpl. getMarkDeletedPosition()PositionManagedCursorImpl. getNextLedgerPosition(long currentLedgerId)PositionManagedCursorImpl. getPersistentMarkDeletedPosition()PositionManagedCursorImpl. getReadPosition()PositionManagedLedgerImpl. offloadPrefix(Position pos)PositionManagedLedgerImpl. terminate()Methods in org.apache.bookkeeper.mledger.impl that return types with arguments of type Position Modifier and Type Method Description java.util.concurrent.CompletableFuture<Position>ManagedLedgerImpl. asyncFindPosition(com.google.common.base.Predicate<Entry> predicate)java.util.Set<? extends Position>ManagedCursorImpl. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx)Async replays given positions: a.java.util.Set<? extends Position>ManagedCursorImpl. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, boolean sortEntries)Methods in org.apache.bookkeeper.mledger.impl with parameters of type Position Modifier and Type Method Description voidManagedCursorImpl. asyncDelete(Position pos, AsyncCallbacks.DeleteCallback callback, java.lang.Object ctx)voidManagedCursorImpl. asyncMarkDelete(Position position, java.util.Map<java.lang.String,java.lang.Long> properties, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)voidManagedCursorImpl. asyncMarkDelete(Position position, AsyncCallbacks.MarkDeleteCallback callback, java.lang.Object ctx)voidManagedLedgerImpl. asyncOffloadPrefix(Position pos, AsyncCallbacks.OffloadCallback callback, java.lang.Object ctx)voidManagedLedgerFactoryImpl. asyncOpenReadOnlyCursor(java.lang.String managedLedgerName, Position startPosition, ManagedLedgerConfig config, AsyncCallbacks.OpenReadOnlyCursorCallback callback, java.lang.Object ctx)voidManagedCursorImpl. asyncResetCursor(Position newPos, 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 list.voidManagedCursorImpl. delete(Position position)long[]ManagedCursorImpl. getBatchPositionAckSet(Position position)booleanManagedCursorImpl. isMessageDeleted(Position position)voidManagedCursorImpl. markDelete(Position position)voidManagedCursorImpl. markDelete(Position position, java.util.Map<java.lang.String,java.lang.Long> properties)ManagedCursorManagedLedgerImpl. newNonDurableCursor(Position startCursorPosition)ManagedCursorManagedLedgerImpl. newNonDurableCursor(Position startPosition, java.lang.String subscriptionName)ManagedCursorManagedLedgerImpl. newNonDurableCursor(Position startCursorPosition, java.lang.String cursorName, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition)PositionManagedLedgerImpl. offloadPrefix(Position pos)ReadOnlyCursorManagedLedgerFactoryImpl. openReadOnlyCursor(java.lang.String managedLedgerName, Position startPosition, ManagedLedgerConfig config)voidManagedCursorImpl. resetCursor(Position newPos)voidManagedCursorImpl. seek(Position newReadPositionInt)Method parameters in org.apache.bookkeeper.mledger.impl with type arguments of type Position Modifier and Type Method Description voidManagedCursorImpl. asyncDelete(java.lang.Iterable<Position> positions, AsyncCallbacks.DeleteCallback callback, java.lang.Object ctx)java.util.Set<? extends Position>ManagedCursorImpl. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx)Async replays given positions: a.java.util.Set<? extends Position>ManagedCursorImpl. asyncReplayEntries(java.util.Set<? extends Position> positions, AsyncCallbacks.ReadEntriesCallback callback, java.lang.Object ctx, boolean sortEntries)voidManagedCursorImpl. delete(java.lang.Iterable<Position> positions)java.util.List<Entry>ManagedCursorImpl. replayEntries(java.util.Set<? extends Position> positions)
-