Package io.vertx.reactivex.sqlclient
Class Transaction
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.Transaction
-
-
Field Summary
Fields Modifier and Type Field Description static 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 Future<Void>commit()Commit the current transaction.Future<Void>completion()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)Future<Void>rollback()Rollback the transaction and release the associated resources.io.reactivex.CompletablerxCommit()Commit the current transaction.io.reactivex.CompletablerxCompletion()Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.io.reactivex.CompletablerxRollback()Rollback the transaction and release the associated resources.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<Transaction> __TYPE_ARG
-
-
Constructor Detail
-
Transaction
public Transaction(Transaction delegate)
-
Transaction
public Transaction(Object delegate)
-
-
Method Detail
-
getDelegate
public Transaction getDelegate()
-
rxCommit
public io.reactivex.Completable rxCommit()
Commit the current transaction.- Returns:
-
rollback
public Future<Void> rollback()
Rollback the transaction and release the associated resources.- Returns:
-
rxRollback
public io.reactivex.Completable rxRollback()
Rollback the transaction and release the associated resources.- Returns:
-
completion
public Future<Void> completion()
Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.- Returns:
- the transaction result
-
rxCompletion
public io.reactivex.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)
-
-