Class Transaction
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
Transaction
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransaction(io.vertx.sqlclient.Transaction delegate) Create a new instance ofTransactiondelegating to the given (non-null) instance ofTransaction.Transaction(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>commit()Commit the current transaction.voidCommit the current transaction.Commit the current transaction.io.smallrye.mutiny.Uni<Void>Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.voidReturn the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.booleanio.vertx.sqlclient.TransactionGet the delegate instance.inthashCode()static TransactionnewInstance(io.vertx.sqlclient.Transaction delegate) Creates a new instance of theTransaction.io.smallrye.mutiny.Uni<Void>rollback()Rollback the transaction and release the associated resources.voidRollback the transaction and release the associated resources.Rollback the transaction and release the associated resources.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Transaction
public Transaction(io.vertx.sqlclient.Transaction delegate) Create a new instance ofTransactiondelegating to the given (non-null) instance ofTransaction. -
Transaction
-
-
Method Details
-
getDelegate
public io.vertx.sqlclient.Transaction getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
commit
Commit the current transaction.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Transaction.commit()
-
commitAndAwait
public void commitAndAwait()Commit the current transaction.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
Transaction.commit()
-
commitAndForget
Commit the current transaction.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Transaction.commit()
-
rollback
Rollback the transaction and release the associated resources.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Transaction.rollback()
-
rollbackAndAwait
public void rollbackAndAwait()Rollback the transaction and release the associated resources.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
Transaction.rollback()
-
rollbackAndForget
Rollback the transaction and release the associated resources.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Transaction.rollback()
-
completion
Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Transaction.completion()
-
completionAndAwait
public void completionAndAwait()Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
Transaction.completion()
-
completionAndForget
Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Transaction.completion()
-
newInstance
Creates a new instance of theTransaction. -
hashCode
public int hashCode() -
equals
-
toString
-