Package org.apache.bookkeeper.client.api
Interface ForceableHandle
-
- All Known Subinterfaces:
WriteAdvHandle
,WriteHandle
- All Known Implementing Classes:
LedgerHandle
,LedgerHandleAdv
,ReadOnlyLedgerHandle
@Public @Unstable public interface ForceableHandle
Provide the ability to enforce durability guarantees to the writer.- Since:
- 4.8
- See Also:
WriteAdvHandle
,WriteHandle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>
force()
Enforce durability to the entries written by this handle.
-
-
-
Method Detail
-
force
java.util.concurrent.CompletableFuture<java.lang.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
-
-