public interface ReactiveTransaction
extends com.holonplatform.core.datastore.transaction.TransactionStatus
com.holonplatform.core.datastore.transaction.TransactionStatus.IllegalTransactionStatusException, com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException, com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionNotSupportedException| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Boolean> |
commit()
Commit the transaction.
|
reactor.core.publisher.Mono<Void> |
rollback()
Rollback the transaction.
|
reactor.core.publisher.Mono<Boolean> commit()
If the transaction has been marked as rollback-only, a rollback action is performed.
Mono which can be used to handle the operation outcome. The result will be true if
the transaction was actually committed, or false if it was rolled back because the the
transaction has been marked as rollback-onlyIllegalTransactionStatusException - If the transaction is already completed (that is, committed or rolled
back)TransactionException - If an error occurred during transaction commitreactor.core.publisher.Mono<Void> rollback()
Mono which can be used to handle the operation outcome. No result value is expected.IllegalTransactionStatusException - If the transaction is already completed (that is, committed or rolled
back)TransactionException - If an error occurred during transaction rollbackCopyright © 2019 The Holon Platform. All rights reserved.