Interface AsyncTransaction
public interface AsyncTransaction
Asynchronous view of a
Transaction.
All operations return CompletableFuture and never block.
Obtained via Transaction.async().
-
Method Details
-
commit
CompletableFuture<Void> commit()Commit this transaction, making all produced messages visible and all acknowledgments durable.- Returns:
- a
CompletableFuturethat completes when the transaction has been successfully committed
-
abort
CompletableFuture<Void> abort()Abort this transaction, discarding all produced messages and rolling back acknowledgments.- Returns:
- a
CompletableFuturethat completes when the transaction has been successfully aborted
-