Package io.vertx.rxjava3.sqlclient
Class Transaction
- java.lang.Object
-
- io.vertx.rxjava3.sqlclient.Transaction
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Transaction>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description Transaction(Transaction delegate)Transaction(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Completablecommit()Commit the current transaction.Completablecompletion()Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.booleanequals(Object o)TransactiongetDelegate()inthashCode()static TransactionnewInstance(Transaction arg)Completablerollback()Rollback the transaction and release the associated resources.CompletablerxCommit()Commit the current transaction.CompletablerxCompletion()Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.CompletablerxRollback()Rollback the transaction and release the associated resources.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Transaction> __TYPE_ARG
-
-
Constructor Detail
-
Transaction
public Transaction(Transaction delegate)
-
Transaction
public Transaction(Object delegate)
-
-
Method Detail
-
getDelegate
public Transaction getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
commit
public Completable commit()
Commit the current transaction.- Returns:
-
rxCommit
public Completable rxCommit()
Commit the current transaction.- Returns:
-
rollback
public Completable rollback()
Rollback the transaction and release the associated resources.- Returns:
-
rxRollback
public Completable rxRollback()
Rollback the transaction and release the associated resources.- Returns:
-
completion
public Completable completion()
Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.- Returns:
- the transaction result
-
rxCompletion
public Completable rxCompletion()
Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.- Returns:
- the transaction result
-
newInstance
public static Transaction newInstance(Transaction arg)
-
-