Package org.apache.bookkeeper.client.api
Interface ForceableHandle
- All Known Subinterfaces:
WriteAdvHandle,WriteHandle
- All Known Implementing Classes:
LedgerHandle,LedgerHandleAdv,ReadOnlyLedgerHandle
Provide the ability to enforce durability guarantees to the writer.
- Since:
- 4.8
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionforce()Enforce durability to the entries written by this handle.
-
Method Details
-
force
CompletableFuture<Void> force()Enforce durability to the entries written by this handle.This API is useful with
WriteFlag.DEFERRED_SYNC, because with that flag writes are acknowledged by the bookie without waiting for a durable write- Returns:
- an handle to the result
-