| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Position |
ManagedLedger.addEntry(byte[] data)
Append a new entry to the end of a managed ledger.
|
Position |
ManagedLedger.addEntry(byte[] data,
int numberOfMessages)
Append a new entry to the end of a managed ledger.
|
Position |
ManagedLedger.addEntry(byte[] data,
int offset,
int length)
Append a new entry to the end of a managed ledger.
|
Position |
ManagedLedger.addEntry(byte[] data,
int numberOfMessages,
int offset,
int length)
Append a new entry to the end of a managed ledger.
|
Position |
ReadOnlyCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint,
com.google.common.base.Predicate<Entry> condition)
Find the newest entry that matches the given predicate.
|
Position |
ManagedCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint,
com.google.common.base.Predicate<Entry> condition)
Find the newest entry that matches the given predicate.
|
Position |
ManagedCursor.findNewestMatching(com.google.common.base.Predicate<Entry> condition)
Find the newest entry that matches the given predicate.
|
Position |
ManagedCursor.getFirstPosition()
Get the first position.
|
Position |
ManagedLedger.getLastConfirmedEntry()
Gets last confirmed entry of the managed ledger.
|
Position |
ManagedCursor.getMarkDeletedPosition()
Get the newest mark deleted position on this cursor.
|
Position |
Position.getNext()
Get the position of the entry next to this one.
|
Position |
ManagedCursor.getPersistentMarkDeletedPosition()
Get the persistent newest mark deleted position on this cursor.
|
Position |
Entry.getPosition() |
Position |
ReadOnlyCursor.getReadPosition()
Get the read position.
|
Position |
ManagedCursor.getReadPosition()
Get the read position.
|
Position |
LedgerOffloader.OffloadHandle.lastOffered() |
Position |
ManagedLedger.offloadPrefix(Position pos)
Offload as many entries before position as possible to longterm storage.
|
Position |
ManagedLedger.terminate()
Terminate the managed ledger and return the last committed entry.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Position> |
ManagedLedger.asyncFindPosition(com.google.common.base.Predicate<Entry> predicate)
Find position by sequenceId.
|
Set<? extends Position> |
ManagedCursor.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx)
Read the specified set of positions from ManagedLedger without ordering.
|
Set<? extends Position> |
ManagedCursor.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
boolean sortEntries)
Read the specified set of positions from ManagedLedger.
|
CompletableFuture<Position> |
LedgerOffloader.OffloadHandle.lastOfferedAsync() |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncCallbacks.AddEntryCallback.addComplete(Position position,
io.netty.buffer.ByteBuf entryData,
Object ctx) |
void |
ManagedCursor.asyncDelete(Position position,
AsyncCallbacks.DeleteCallback callback,
Object ctx)
Delete a single message asynchronously
Mark a single message for deletion.
|
void |
ManagedCursor.asyncMarkDelete(Position position,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx)
Asynchronous mark delete.
|
void |
ManagedCursor.asyncMarkDelete(Position position,
Map<String,Long> properties,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx)
Asynchronous mark delete.
|
void |
ManagedLedger.asyncOffloadPrefix(Position pos,
AsyncCallbacks.OffloadCallback callback,
Object ctx)
Offload as many entries before position as possible to longterm storage.
|
void |
ManagedLedgerFactory.asyncOpenReadOnlyCursor(String managedLedgerName,
Position startPosition,
ManagedLedgerConfig config,
AsyncCallbacks.OpenReadOnlyCursorCallback callback,
Object ctx)
Open a
ReadOnlyCursor positioned to the earliest entry for the specified managed ledger |
void |
ManagedCursor.asyncResetCursor(Position position,
AsyncCallbacks.ResetCursorCallback callback)
reset the cursor to specified position to enable replay of messages.
|
void |
ManagedCursor.delete(Position position)
Delete a single message.
|
void |
AsyncCallbacks.FindEntryCallback.findEntryComplete(Position position,
Object ctx) |
void |
ManagedCursor.markDelete(Position position)
This signals that the reader is done with all the entries up to "position" (included).
|
void |
ManagedCursor.markDelete(Position position,
Map<String,Long> properties)
This signals that the reader is done with all the entries up to "position" (included).
|
ManagedCursor |
ManagedLedger.newNonDurableCursor(Position startCursorPosition)
Creates a new cursor whose metadata is not backed by durable storage.
|
ManagedCursor |
ManagedLedger.newNonDurableCursor(Position startPosition,
String subscriptionName) |
ManagedCursor |
ManagedLedger.newNonDurableCursor(Position startPosition,
String subscriptionName,
CommandSubscribe.InitialPosition initialPosition) |
void |
AsyncCallbacks.OffloadCallback.offloadComplete(Position pos,
Object ctx) |
Position |
ManagedLedger.offloadPrefix(Position pos)
Offload as many entries before position as possible to longterm storage.
|
ReadOnlyCursor |
ManagedLedgerFactory.openReadOnlyCursor(String managedLedgerName,
Position startPosition,
ManagedLedgerConfig config)
Open a
ReadOnlyCursor positioned to the earliest entry for the specified managed ledger |
void |
ManagedCursor.resetCursor(Position position)
reset the cursor to specified position to enable replay of messages.
|
default void |
ManagedCursor.seek(Position newReadPosition)
Move the cursor to a different read position.
|
void |
ManagedCursor.seek(Position newReadPosition,
boolean force) |
void |
AsyncCallbacks.TerminateCallback.terminateComplete(Position lastCommittedPosition,
Object ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
ManagedCursor.asyncDelete(Iterable<Position> position,
AsyncCallbacks.DeleteCallback callback,
Object ctx)
Delete a group of messages asynchronously
Mark a group of messages for deletion.
|
Set<? extends Position> |
ManagedCursor.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx)
Read the specified set of positions from ManagedLedger without ordering.
|
Set<? extends Position> |
ManagedCursor.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
boolean sortEntries)
Read the specified set of positions from ManagedLedger.
|
void |
ManagedCursor.delete(Iterable<Position> positions)
Delete a group of entries.
|
void |
AsyncCallbacks.FindEntryCallback.findEntryFailed(ManagedLedgerException exception,
Optional<Position> failedReadPosition,
Object ctx) |
List<Entry> |
ManagedCursor.replayEntries(Set<? extends Position> positions)
Read the specified set of positions from ManagedLedger.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PositionImpl |
class |
PositionImplRecyclable |
| Modifier and Type | Method and Description |
|---|---|
Position |
ManagedLedgerImpl.addEntry(byte[] data) |
Position |
ManagedLedgerImpl.addEntry(byte[] data,
int numberOfMessages) |
Position |
ManagedLedgerImpl.addEntry(byte[] data,
int offset,
int length) |
Position |
ManagedLedgerImpl.addEntry(byte[] data,
int numberOfMessages,
int offset,
int length) |
Position |
ManagedCursorImpl.findNewestMatching(ManagedCursor.FindPositionConstraint constraint,
com.google.common.base.Predicate<Entry> condition) |
Position |
ManagedCursorImpl.findNewestMatching(com.google.common.base.Predicate<Entry> condition) |
Position |
ManagedCursorImpl.getFirstPosition() |
Position |
ManagedLedgerImpl.getLastConfirmedEntry() |
Position |
ManagedCursorImpl.getMarkDeletedPosition() |
Position |
ManagedCursorImpl.getNextLedgerPosition(long currentLedgerId) |
Position |
ManagedCursorImpl.getPersistentMarkDeletedPosition() |
Position |
ManagedCursorImpl.getReadPosition() |
Position |
ManagedLedgerImpl.offloadPrefix(Position pos) |
Position |
ManagedLedgerImpl.terminate() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Position> |
ManagedLedgerImpl.asyncFindPosition(com.google.common.base.Predicate<Entry> predicate) |
Set<? extends Position> |
ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx)
Async replays given positions: a.
|
Set<? extends Position> |
ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
boolean sortEntries) |
| Modifier and Type | Method and Description |
|---|---|
void |
ManagedCursorImpl.asyncDelete(Position pos,
AsyncCallbacks.DeleteCallback callback,
Object ctx) |
void |
ManagedCursorImpl.asyncMarkDelete(Position position,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx) |
void |
ManagedCursorImpl.asyncMarkDelete(Position position,
Map<String,Long> properties,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx) |
void |
ManagedLedgerImpl.asyncOffloadPrefix(Position pos,
AsyncCallbacks.OffloadCallback callback,
Object ctx) |
void |
ManagedLedgerFactoryImpl.asyncOpenReadOnlyCursor(String managedLedgerName,
Position startPosition,
ManagedLedgerConfig config,
AsyncCallbacks.OpenReadOnlyCursorCallback callback,
Object ctx) |
void |
ManagedCursorImpl.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.
|
void |
ManagedCursorImpl.delete(Position position) |
long[] |
ManagedCursorImpl.getBatchPositionAckSet(Position position) |
boolean |
ManagedCursorImpl.isMessageDeleted(Position position) |
void |
ManagedCursorImpl.markDelete(Position position) |
void |
ManagedCursorImpl.markDelete(Position position,
Map<String,Long> properties) |
ManagedCursor |
ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition) |
ManagedCursor |
ManagedLedgerImpl.newNonDurableCursor(Position startPosition,
String subscriptionName) |
ManagedCursor |
ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition,
String cursorName,
CommandSubscribe.InitialPosition initialPosition) |
Position |
ManagedLedgerImpl.offloadPrefix(Position pos) |
ReadOnlyCursor |
ManagedLedgerFactoryImpl.openReadOnlyCursor(String managedLedgerName,
Position startPosition,
ManagedLedgerConfig config) |
void |
ManagedCursorImpl.resetCursor(Position newPos) |
void |
ManagedCursorImpl.seek(Position newReadPositionInt,
boolean force) |
| Modifier and Type | Method and Description |
|---|---|
void |
ManagedCursorImpl.asyncDelete(Iterable<Position> positions,
AsyncCallbacks.DeleteCallback callback,
Object ctx) |
Set<? extends Position> |
ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx)
Async replays given positions: a.
|
Set<? extends Position> |
ManagedCursorImpl.asyncReplayEntries(Set<? extends Position> positions,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
boolean sortEntries) |
void |
ManagedCursorImpl.delete(Iterable<Position> positions) |
List<Entry> |
ManagedCursorImpl.replayEntries(Set<? extends Position> positions) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.