public static interface LedgerOffloader.OffloadHandle
| Modifier and Type | Interface and Description |
|---|---|
static class |
LedgerOffloader.OffloadHandle.OfferEntryResult |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<Boolean> |
AsyncClose() |
boolean |
close()
Manually close current offloading segment
|
CompletableFuture<LedgerOffloader.OffloadResult> |
getOffloadResultAsync() |
Position |
lastOffered() |
CompletableFuture<Position> |
lastOfferedAsync() |
LedgerOffloader.OffloadHandle.OfferEntryResult |
offerEntry(Entry entry)
The caller should manually release entry no matter what the offer result is.
|
CompletableFuture<LedgerOffloader.OffloadHandle.OfferEntryResult> |
offerEntryAsync(Entry entry) |
Position lastOffered()
CompletableFuture<Position> lastOfferedAsync()
LedgerOffloader.OffloadHandle.OfferEntryResult offerEntry(Entry entry)
CompletableFuture<LedgerOffloader.OffloadHandle.OfferEntryResult> offerEntryAsync(Entry entry)
CompletableFuture<LedgerOffloader.OffloadResult> getOffloadResultAsync()
boolean close()
default CompletableFuture<Boolean> AsyncClose()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.