接口 LedgerOffloader.OffloadHandle
- 封闭接口:
- LedgerOffloader
public static interface LedgerOffloader.OffloadHandle
Used to store driver info, buffer entries, mark progress, etc.
Create one per segment.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明default CompletableFuture<Boolean>booleanclose()Manually close current offloading segment.offerEntry(Entry entry) The caller should manually release entry no matter what the offer result is.offerEntryAsync(Entry entry)
-
方法详细资料
-
lastOffered
Position lastOffered() -
lastOfferedAsync
CompletableFuture<Position> lastOfferedAsync() -
offerEntry
The caller should manually release entry no matter what the offer result is. -
offerEntryAsync
-
getOffloadResultAsync
CompletableFuture<LedgerOffloader.OffloadResult> getOffloadResultAsync() -
close
boolean close()Manually close current offloading segment.- 返回:
- true if the segment is not already closed
-
asyncClose
-