Class BlobStoreBackedReadHandleImplV2
java.lang.Object
org.apache.bookkeeper.mledger.offload.jcloud.impl.BlobStoreBackedReadHandleImplV2
- All Implemented Interfaces:
AutoCloseable,org.apache.bookkeeper.client.api.Handle,org.apache.bookkeeper.client.api.ReadHandle
public class BlobStoreBackedReadHandleImplV2
extends Object
implements org.apache.bookkeeper.client.api.ReadHandle
-
Method Summary
Modifier and TypeMethodDescriptionlonggetId()longorg.apache.bookkeeper.client.api.LedgerMetadatalongbooleanisClosed()static org.apache.bookkeeper.client.api.ReadHandleopen(ScheduledExecutorService executor, org.jclouds.blobstore.BlobStore blobStore, String bucket, List<String> keys, List<String> indexKeys, DataBlockUtils.VersionCheck versionCheck, long ledgerId, int readBufferSize, 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<org.apache.bookkeeper.client.api.LedgerEntries>readUnconfirmedAsync(long firstEntry, long lastEntry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.bookkeeper.client.api.Handle
closeMethods inherited from interface org.apache.bookkeeper.client.api.ReadHandle
read, readLastAddConfirmed, readLastAddConfirmedAndEntry, readUnconfirmed, tryReadLastAddConfirmed
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceorg.apache.bookkeeper.client.api.Handle
-
getLedgerMetadata
public org.apache.bookkeeper.client.api.LedgerMetadata getLedgerMetadata()- Specified by:
getLedgerMetadatain interfaceorg.apache.bookkeeper.client.api.Handle
-
closeAsync
- Specified by:
closeAsyncin interfaceorg.apache.bookkeeper.client.api.Handle
-
readAsync
public CompletableFuture<org.apache.bookkeeper.client.api.LedgerEntries> readAsync(long firstEntry, long lastEntry) - Specified by:
readAsyncin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
readUnconfirmedAsync
public CompletableFuture<org.apache.bookkeeper.client.api.LedgerEntries> readUnconfirmedAsync(long firstEntry, long lastEntry) - Specified by:
readUnconfirmedAsyncin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
readLastAddConfirmedAsync
- Specified by:
readLastAddConfirmedAsyncin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
tryReadLastAddConfirmedAsync
- Specified by:
tryReadLastAddConfirmedAsyncin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
getLastAddConfirmed
public long getLastAddConfirmed()- Specified by:
getLastAddConfirmedin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
getLength
public long getLength()- Specified by:
getLengthin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
readLastAddConfirmedAndEntryAsync
public CompletableFuture<org.apache.bookkeeper.client.api.LastConfirmedAndEntry> readLastAddConfirmedAndEntryAsync(long entryId, long timeOutInMillis, boolean parallel) - Specified by:
readLastAddConfirmedAndEntryAsyncin interfaceorg.apache.bookkeeper.client.api.ReadHandle
-
open
public static org.apache.bookkeeper.client.api.ReadHandle open(ScheduledExecutorService executor, org.jclouds.blobstore.BlobStore blobStore, String bucket, List<String> keys, List<String> indexKeys, DataBlockUtils.VersionCheck versionCheck, long ledgerId, int readBufferSize, LedgerOffloaderStats offloaderStats, String managedLedgerName) throws IOException - Throws:
IOException
-