public class FileStoreBackedReadHandleImpl extends Object implements org.apache.bookkeeper.client.api.ReadHandle
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeAsync() |
long |
getId() |
long |
getLastAddConfirmed() |
org.apache.bookkeeper.client.api.LedgerMetadata |
getLedgerMetadata() |
long |
getLength() |
boolean |
isClosed() |
static org.apache.bookkeeper.client.api.ReadHandle |
open(ScheduledExecutorService executor,
org.apache.hadoop.io.MapFile.Reader reader,
long ledgerId,
LedgerOffloaderStats offloaderStats,
String managedLedgerName) |
CompletableFuture<org.apache.bookkeeper.client.api.LedgerEntries> |
readAsync(long firstEntry,
long lastEntry) |
CompletableFuture<org.apache.bookkeeper.client.api.LastConfirmedAndEntry> |
readLastAddConfirmedAndEntryAsync(long entryId,
long timeOutInMillis,
boolean parallel) |
CompletableFuture<Long> |
readLastAddConfirmedAsync() |
CompletableFuture<org.apache.bookkeeper.client.api.LedgerEntries> |
readUnconfirmedAsync(long firstEntry,
long lastEntry) |
CompletableFuture<Long> |
tryReadLastAddConfirmedAsync() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, readLastAddConfirmed, readLastAddConfirmedAndEntry, readUnconfirmed, tryReadLastAddConfirmedclosepublic long getId()
getId in interface org.apache.bookkeeper.client.api.Handlepublic org.apache.bookkeeper.client.api.LedgerMetadata getLedgerMetadata()
getLedgerMetadata in interface org.apache.bookkeeper.client.api.Handlepublic CompletableFuture<Void> closeAsync()
closeAsync in interface org.apache.bookkeeper.client.api.Handlepublic CompletableFuture<org.apache.bookkeeper.client.api.LedgerEntries> readAsync(long firstEntry, long lastEntry)
readAsync in interface org.apache.bookkeeper.client.api.ReadHandlepublic CompletableFuture<org.apache.bookkeeper.client.api.LedgerEntries> readUnconfirmedAsync(long firstEntry, long lastEntry)
readUnconfirmedAsync in interface org.apache.bookkeeper.client.api.ReadHandlepublic CompletableFuture<Long> readLastAddConfirmedAsync()
readLastAddConfirmedAsync in interface org.apache.bookkeeper.client.api.ReadHandlepublic CompletableFuture<Long> tryReadLastAddConfirmedAsync()
tryReadLastAddConfirmedAsync in interface org.apache.bookkeeper.client.api.ReadHandlepublic long getLastAddConfirmed()
getLastAddConfirmed in interface org.apache.bookkeeper.client.api.ReadHandlepublic long getLength()
getLength in interface org.apache.bookkeeper.client.api.ReadHandlepublic boolean isClosed()
isClosed in interface org.apache.bookkeeper.client.api.ReadHandlepublic CompletableFuture<org.apache.bookkeeper.client.api.LastConfirmedAndEntry> readLastAddConfirmedAndEntryAsync(long entryId, long timeOutInMillis, boolean parallel)
readLastAddConfirmedAndEntryAsync in interface org.apache.bookkeeper.client.api.ReadHandlepublic static org.apache.bookkeeper.client.api.ReadHandle open(ScheduledExecutorService executor, org.apache.hadoop.io.MapFile.Reader reader, long ledgerId, LedgerOffloaderStats offloaderStats, String managedLedgerName) throws IOException
IOExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.