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 Completable
commit()
Commit the current transaction.Completable
completion()
Return the transaction completionFuture
that succeeds when the transaction commits and fails withTransactionRollbackException
when the transaction rolls back.boolean
equals(Object o)
Transaction
getDelegate()
int
hashCode()
static Transaction
newInstance(Transaction arg)
Completable
rollback()
Rollback the transaction and release the associated resources.Completable
rxCommit()
Commit the current transaction.Completable
rxCompletion()
Return the transaction completionFuture
that succeeds when the transaction commits and fails withTransactionRollbackException
when the transaction rolls back.Completable
rxRollback()
Rollback the transaction and release the associated resources.String
toString()
-
-
-
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()
-
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 completionFuture
that succeeds when the transaction commits and fails withTransactionRollbackException
when the transaction rolls back.- Returns:
- the transaction result
-
rxCompletion
public Completable rxCompletion()
Return the transaction completionFuture
that succeeds when the transaction commits and fails withTransactionRollbackException
when the transaction rolls back.- Returns:
- the transaction result
-
newInstance
public static Transaction newInstance(Transaction arg)
-
-