public static interface FDBRecordContext.CommitCheck extends FDBRecordContext.CommitCheckAsync
FDBRecordContext.CommitCheckAsync
.
At some point, this class will be deprecated.
Please implement FDBRecordContext.CommitCheckAsync
directly or call FDBRecordContext.addCommitCheck(CompletableFuture)
instead.Modifier and Type | Method and Description |
---|---|
void |
check()
Complete the check.
|
default CompletableFuture<Void> |
checkAsync()
Complete the check.
|
isReady
@Nonnull default CompletableFuture<Void> checkAsync()
FDBRecordContext.CommitCheckAsync
FDBRecordContext.commit()
finishes. If FDBRecordContext.CommitCheckAsync.isReady()
returns true
earlier,
it can be called while processing the transaction.checkAsync
in interface FDBRecordContext.CommitCheckAsync
void check()
FDBRecordContext.commit()
finishes. If FDBRecordContext.CommitCheckAsync.isReady()
returns true
earlier,
it can be called while processing the transaction.
This method should not block or FDBRecordContext.commitAsync()
will block. It is therefore much
better to always implement FDBRecordContext.CommitCheckAsync
or call FDBRecordContext.addCommitCheck(CompletableFuture)
instead.