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:
  • Method Summary

    Modifier and Type
    Method
    Description
    Enforce durability to the entries written by this handle.
  • Method Details

    • 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