| 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.
|
| Modifier and Type | Method and Description |
|---|---|
static ManagedLedgerException |
ManagedLedgerException.getManagedLedgerException(Throwable e) |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncCallbacks.AddEntryCallback.addFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.ClearBacklogCallback.clearBacklogFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.CloseCallback.closeFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.DeleteCursorCallback.deleteCursorFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.DeleteCallback.deleteFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.DeleteLedgerCallback.deleteLedgerFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.FindEntryCallback.findEntryFailed(ManagedLedgerException exception,
Optional<Position> failedReadPosition,
Object ctx) |
void |
AsyncCallbacks.ManagedLedgerInfoCallback.getInfoFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.MarkDeleteCallback.markDeleteFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.OffloadCallback.offloadFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.OpenCursorCallback.openCursorFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.OpenLedgerCallback.openLedgerFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.OpenReadOnlyCursorCallback.openReadOnlyCursorFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.ReadEntriesCallback.readEntriesFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.ReadEntryCallback.readEntryFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.ResetCursorCallback.resetFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.SkipEntriesCallback.skipEntriesFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.TerminateCallback.terminateFailed(ManagedLedgerException exception,
Object ctx) |
void |
AsyncCallbacks.UpdatePropertiesCallback.updatePropertiesFailed(ManagedLedgerException exception,
Object ctx) |
| 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.
|
void |
ManagedCursor.clearBacklog()
Clear the cursor backlog.
|
void |
ManagedCursor.close()
Close the cursor and releases the associated resources.
|
void |
ReadOnlyCursor.close()
Close the cursor and releases the associated resources.
|
void |
ManagedLedger.close()
Close the ManagedLedger.
|
void |
ManagedLedger.delete()
Delete the ManagedLedger.
|
void |
ManagedCursor.delete(Iterable<Position> positions)
Delete a group of entries.
|
void |
ManagedCursor.delete(Position position)
Delete a single message.
|
void |
ManagedLedgerFactory.delete(String name)
Delete a managed ledger.
|
void |
ManagedLedger.deleteCursor(String name)
Remove a ManagedCursor from this ManagedLedger.
|
void |
ManagedLedger.deleteProperty(String key)
Delete the property by key.
|
Position |
ManagedCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint,
com.google.common.base.Predicate<Entry> condition)
Find the newest entry that matches the given predicate.
|
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(com.google.common.base.Predicate<Entry> condition)
Find the newest entry that matches the given predicate.
|
ManagedLedgerInfo |
ManagedLedgerFactory.getManagedLedgerInfo(String name)
Get the current metadata info for a managed ledger.
|
Entry |
ManagedCursor.getNthEntry(int n,
ManagedCursor.IndividualDeletedEntries deletedEntries)
Get 'N'th entry from the mark delete position in the cursor without updating any cursor positions.
|
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) |
Position |
ManagedLedger.offloadPrefix(Position pos)
Offload as many entries before position as possible to longterm storage.
|
ManagedLedger |
ManagedLedgerFactory.open(String name)
Open a managed ledger.
|
ManagedLedger |
ManagedLedgerFactory.open(String name,
ManagedLedgerConfig config)
Open a managed ledger.
|
ManagedCursor |
ManagedLedger.openCursor(String name)
Open a ManagedCursor in this ManagedLedger.
|
ManagedCursor |
ManagedLedger.openCursor(String name,
CommandSubscribe.InitialPosition initialPosition)
Open a ManagedCursor in this ManagedLedger.
|
ManagedCursor |
ManagedLedger.openCursor(String name,
CommandSubscribe.InitialPosition initialPosition,
Map<String,Long> properties)
Open a ManagedCursor in this ManagedLedger.
|
ReadOnlyCursor |
ManagedLedgerFactory.openReadOnlyCursor(String managedLedgerName,
Position startPosition,
ManagedLedgerConfig config)
Open a
ReadOnlyCursor positioned to the earliest entry for the specified managed ledger |
List<Entry> |
ManagedCursor.readEntries(int numberOfEntriesToRead)
Read entries from the ManagedLedger, up to the specified number.
|
List<Entry> |
ReadOnlyCursor.readEntries(int numberOfEntriesToRead)
Read entries from the ManagedLedger, up to the specified number.
|
List<Entry> |
ManagedCursor.readEntriesOrWait(int numberOfEntriesToRead)
Read entries from the ManagedLedger, up to the specified number.
|
List<Entry> |
ManagedCursor.readEntriesOrWait(int maxEntries,
long maxSizeBytes)
Read entries from the ManagedLedger, up to the specified number and size.
|
List<Entry> |
ManagedCursor.replayEntries(Set<? extends Position> positions)
Read the specified set of positions from ManagedLedger.
|
void |
ManagedCursor.resetCursor(Position position)
reset the cursor to specified position to enable replay of messages.
|
void |
ManagedLedger.setProperties(Map<String,String> properties)
Update managed-ledger's properties.
|
void |
ManagedLedger.setProperty(String key,
String value)
Add key-value to propertiesMap.
|
void |
ManagedLedgerFactory.shutdown()
Releases all the resources maintained by the ManagedLedgerFactory.
|
CompletableFuture<Void> |
ManagedLedgerFactory.shutdownAsync()
This method tries it's best to releases all the resources maintained by the ManagedLedgerFactory.
|
void |
ManagedCursor.skipEntries(int numEntriesToSkip,
ManagedCursor.IndividualDeletedEntries deletedEntries)
Skip n entries from the read position of this cursor.
|
Position |
ManagedLedger.terminate()
Terminate the managed ledger and return the last committed entry.
|
| Modifier and Type | Method and Description |
|---|---|
static ManagedLedgerException |
ManagedLedgerImpl.createManagedLedgerException(int bkErrorCode) |
static ManagedLedgerException |
ManagedLedgerImpl.createManagedLedgerException(Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
void |
OpAddEntry.failed(ManagedLedgerException e) |
void |
ManagedCursorImpl.VoidCallback.operationFailed(ManagedLedgerException exception) |
| 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) |
void |
ManagedCursorImpl.clearBacklog() |
void |
ManagedLedgerImpl.close() |
void |
ManagedCursorImpl.close() |
void |
ManagedLedgerImpl.delete()
Delete this ManagedLedger completely from the system.
|
void |
ManagedCursorImpl.delete(Iterable<Position> positions) |
void |
ManagedCursorImpl.delete(Position position) |
void |
ManagedLedgerFactoryImpl.delete(String name) |
void |
ManagedLedgerImpl.deleteCursor(String name) |
void |
ManagedLedgerImpl.deleteProperty(String key) |
Position |
ManagedCursorImpl.findNewestMatching(ManagedCursor.FindPositionConstraint constraint,
com.google.common.base.Predicate<Entry> condition) |
Position |
ManagedCursorImpl.findNewestMatching(com.google.common.base.Predicate<Entry> condition) |
ManagedLedgerInfo |
ManagedLedgerFactoryImpl.getManagedLedgerInfo(String name) |
Entry |
ManagedCursorImpl.getNthEntry(int n,
ManagedCursor.IndividualDeletedEntries deletedEntries) |
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) |
ManagedLedger |
ManagedLedgerFactoryImpl.open(String name) |
ManagedLedger |
ManagedLedgerFactoryImpl.open(String name,
ManagedLedgerConfig config) |
ManagedCursor |
ManagedLedgerImpl.openCursor(String cursorName) |
ManagedCursor |
ManagedLedgerImpl.openCursor(String cursorName,
CommandSubscribe.InitialPosition initialPosition) |
ManagedCursor |
ManagedLedgerImpl.openCursor(String cursorName,
CommandSubscribe.InitialPosition initialPosition,
Map<String,Long> properties) |
ReadOnlyCursor |
ManagedLedgerFactoryImpl.openReadOnlyCursor(String managedLedgerName,
Position startPosition,
ManagedLedgerConfig config) |
List<Entry> |
ManagedCursorImpl.readEntries(int numberOfEntriesToRead) |
List<Entry> |
ManagedCursorImpl.readEntriesOrWait(int numberOfEntriesToRead) |
List<Entry> |
ManagedCursorImpl.readEntriesOrWait(int numberOfEntriesToRead,
long maxSizeBytes) |
List<Entry> |
ManagedCursorImpl.replayEntries(Set<? extends Position> positions) |
void |
ManagedCursorImpl.resetCursor(Position newPos) |
void |
ManagedLedgerImpl.setProperties(Map<String,String> properties) |
void |
ManagedLedgerImpl.setProperty(String key,
String value) |
void |
ManagedLedgerFactoryImpl.shutdown() |
CompletableFuture<Void> |
ManagedLedgerFactoryImpl.shutdownAsync() |
void |
ManagedCursorImpl.skipEntries(int numEntriesToSkip,
ManagedCursor.IndividualDeletedEntries deletedEntries) |
Position |
ManagedLedgerImpl.terminate() |
| Modifier and Type | Method and Description |
|---|---|
void |
Futures.CloseFuture.closeFailed(ManagedLedgerException exception,
Object ctx) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.