Interface FDBRecordContext.CommitCheckAsync

    • Method Detail

      • isReady

        default boolean isReady()
        Get whether the check is ready to be tested.
        Returns:
        true if the check is complete
      • checkAsync

        @Nonnull
        CompletableFuture<Void> checkAsync()
        Complete the check. This is always called once before FDBRecordContext.commit() finishes. If isReady() returns true earlier, it can be called while processing the transaction.
        Returns:
        a future that will be complete (exceptionally if the check fails) when the check has been performed