| 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 |
|---|---|
com.google.common.collect.Range<PositionImpl> |
ManagedCursor.getLastIndividualDeletedRange()
Get last individual deleted range
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReadOnlyCursor.asyncReadEntries(int numberOfEntriesToRead,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition)
Asynchronously read entries from the ManagedLedger.
|
void |
ManagedCursor.asyncReadEntries(int numberOfEntriesToRead,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition)
Asynchronously read entries from the ManagedLedger.
|
void |
ReadOnlyCursor.asyncReadEntries(int numberOfEntriesToRead,
long maxSizeBytes,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition)
Asynchronously read entries from the ManagedLedger.
|
void |
ManagedCursor.asyncReadEntries(int numberOfEntriesToRead,
long maxSizeBytes,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition)
Asynchronously read entries from the ManagedLedger.
|
void |
ManagedCursor.asyncReadEntriesOrWait(int numberOfEntriesToRead,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition)
Asynchronously read entries from the ManagedLedger.
|
void |
ManagedCursor.asyncReadEntriesOrWait(int maxEntries,
long maxSizeBytes,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition)
Asynchronously read entries from the ManagedLedger, up to the specified number and size.
|
long[] |
ManagedCursor.getDeletedBatchIndexesAsLongArray(PositionImpl position)
Get deleted batch indexes list for a batch message.
|
| Modifier and Type | Method and Description |
|---|---|
long |
ReadOnlyCursor.getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range)
Return the number of messages that this cursor still has to read.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PositionImplRecyclable |
| Modifier and Type | Field and Description |
|---|---|
static PositionImpl |
PositionImpl.earliest |
static PositionImpl |
PositionImpl.latest |
protected PositionImpl |
ManagedCursorImpl.markDeletePosition |
protected PositionImpl |
ManagedCursorImpl.persistentMarkDeletePosition |
protected PositionImpl |
ManagedCursorImpl.readPosition |
protected PositionImpl |
ManagedCursorImpl.statsLastReadPosition |
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicReferenceFieldUpdater<ManagedCursorImpl,PositionImpl> |
ManagedCursorImpl.READ_POSITION_UPDATER |
| Modifier and Type | Method and Description |
|---|---|
static PositionImpl |
PositionImpl.get(long ledgerId,
long entryId) |
static PositionImpl |
PositionImpl.get(long ledgerId,
long entryId,
long[] ackSet) |
static PositionImpl |
PositionImpl.get(PositionImpl other) |
PositionImpl |
ManagedLedgerImpl.getFirstPosition() |
PositionImpl |
PositionImpl.getNext() |
PositionImpl |
ManagedCursorImpl.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.
|
PositionImpl |
ManagedLedgerImpl.getNextValidPosition(PositionImpl position) |
PositionImpl |
ManagedLedgerImpl.getNextValidPositionInternal(PositionImpl position) |
PositionImpl |
EntryImpl.getPosition() |
PositionImpl |
ManagedLedgerImpl.getPositionAfterN(PositionImpl startPosition,
long n,
ManagedLedgerImpl.PositionBound startRange)
Get the entry position at a given distance from a given position.
|
PositionImpl |
ManagedLedgerImpl.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.
|
PositionImpl |
ManagedCursorContainer.getSlowestReaderPosition()
Get the slowest reader position, meaning older acknowledged position between all the cursors.
|
| Modifier and Type | Method and 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.
|
LongPairRangeSet<PositionImpl> |
ManagedCursorImpl.getIndividuallyDeletedMessagesSet() |
com.google.common.collect.Range<PositionImpl> |
ManagedCursorImpl.getLastIndividualDeletedRange() |
| Modifier and Type | Method and Description |
|---|---|
void |
ManagedCursorImpl.asyncReadEntries(int numberOfEntriesToRead,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition) |
void |
ManagedCursorImpl.asyncReadEntries(int numberOfEntriesToRead,
long maxSizeBytes,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition) |
void |
ManagedCursorImpl.asyncReadEntriesOrWait(int numberOfEntriesToRead,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition) |
void |
ManagedCursorImpl.asyncReadEntriesOrWait(int maxEntries,
long maxSizeBytes,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx,
PositionImpl maxPosition) |
void |
ReadOnlyManagedLedgerImpl.asyncReadEntry(PositionImpl position,
AsyncCallbacks.ReadEntryCallback callback,
Object ctx) |
void |
ManagedLedgerImpl.asyncReadEntry(PositionImpl position,
AsyncCallbacks.ReadEntryCallback callback,
Object ctx) |
void |
EntryCacheImpl.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh,
PositionImpl position,
AsyncCallbacks.ReadEntryCallback callback,
Object ctx) |
void |
EntryCache.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh,
PositionImpl position,
AsyncCallbacks.ReadEntryCallback callback,
Object ctx)
Read entry at given position from the cache or from bookkeeper.
|
protected void |
ManagedLedgerImpl.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle ledger,
PositionImpl position,
AsyncCallbacks.ReadEntryCallback callback,
Object ctx) |
void |
EntryCacheManager.EntryCacheDisabled.asyncReadEntry(org.apache.bookkeeper.client.api.ReadHandle lh,
PositionImpl position,
AsyncCallbacks.ReadEntryCallback callback,
Object ctx) |
int |
PositionImpl.compareTo(PositionImpl other) |
static EntryImpl |
EntryImpl.create(PositionImpl position,
io.netty.buffer.ByteBuf data) |
static PositionImpl |
PositionImpl.get(PositionImpl other) |
long[] |
ManagedCursorImpl.getDeletedBatchIndexesAsLongArray(PositionImpl position) |
long |
ManagedLedgerImpl.getEstimatedBacklogSize(PositionImpl pos)
Get estimated backlog size from a specific position.
|
PositionImpl |
ManagedCursorImpl.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.
|
PositionImpl |
ManagedLedgerImpl.getNextValidPosition(PositionImpl position) |
PositionImpl |
ManagedLedgerImpl.getNextValidPositionInternal(PositionImpl position) |
PositionImpl |
ManagedLedgerImpl.getPositionAfterN(PositionImpl startPosition,
long n,
ManagedLedgerImpl.PositionBound startRange)
Get the entry position at a given distance from a given position.
|
PositionImpl |
ManagedLedgerImpl.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.
|
boolean |
ManagedLedgerImpl.hasMoreEntries(PositionImpl position) |
protected void |
ManagedCursorImpl.internalAsyncMarkDelete(PositionImpl newPosition,
Map<String,Long> properties,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx) |
protected void |
NonDurableCursorImpl.internalAsyncMarkDelete(PositionImpl newPosition,
Map<String,Long> properties,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx) |
protected void |
ManagedCursorImpl.internalResetCursor(PositionImpl position,
AsyncCallbacks.ResetCursorCallback resetCursorCallback) |
void |
EntryCacheImpl.invalidateEntries(PositionImpl lastPosition) |
void |
EntryCache.invalidateEntries(PositionImpl lastPosition)
Remove from cache all the entries related to a ledger up to lastPosition included.
|
void |
EntryCacheManager.EntryCacheDisabled.invalidateEntries(PositionImpl lastPosition) |
boolean |
ManagedLedgerImpl.isValidPosition(PositionImpl position)
Validate whether a specified position is valid for the current managed ledger.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
ManagedCursorImpl.getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range) |
long |
ReadOnlyCursorImpl.getNumberOfEntries(com.google.common.collect.Range<PositionImpl> range) |
| Constructor and Description |
|---|
PositionImpl(PositionImpl other) |
ReadOnlyCursorImpl(BookKeeper bookkeeper,
ManagedLedgerConfig config,
ManagedLedgerImpl ledger,
PositionImpl startPosition,
String cursorName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
PositionAckSetUtil.andAckSet(PositionImpl currentPosition,
PositionImpl otherPosition) |
static int |
PositionAckSetUtil.compareToWithAckSet(PositionImpl currentPosition,
PositionImpl otherPosition) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.