Class Transaction
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.Transaction
-
public class Transaction extends Object
A transaction. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Transaction>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description Transaction(io.vertx.sqlclient.Transaction delegate)
Transaction(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
commit()
Likecommit()
with an handler to be notified when the transaction commit has completedVoid
commitAndAwait()
Blocking variant ofcommit()
.void
commitAndForget()
Variant ofcommit()
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
completion()
Likecompletion()
but with a callbackVoid
completionAndAwait()
Blocking variant ofcompletion()
.void
completionAndForget()
Variant ofcompletion()
that ignores the result of the operation.boolean
equals(Object o)
io.vertx.sqlclient.Transaction
getDelegate()
int
hashCode()
static Transaction
newInstance(io.vertx.sqlclient.Transaction arg)
io.smallrye.mutiny.Uni<Void>
rollback()
Likerollback()
with an handler to be notified when the transaction rollback has completedVoid
rollbackAndAwait()
Blocking variant ofrollback()
.void
rollbackAndForget()
Variant ofrollback()
that ignores the result of the operation.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<Transaction> __TYPE_ARG
-
-
Constructor Detail
-
Transaction
public Transaction(io.vertx.sqlclient.Transaction delegate)
-
Transaction
public Transaction(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.Transaction getDelegate()
-
commit
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> commit()
Likecommit()
with an handler to be notified when the transaction commit has completedUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
commitAndAwait
public Void commitAndAwait()
Blocking variant ofcommit()
.This method waits 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 a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
commitAndForget
public void commitAndForget()
-
rollback
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> rollback()
Likerollback()
with an handler to be notified when the transaction rollback has completedUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
rollbackAndAwait
public Void rollbackAndAwait()
Blocking variant ofrollback()
.This method waits 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 a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
rollbackAndForget
public void rollbackAndForget()
Variant ofrollback()
that ignores the result of the operation.This method subscribes on the result of
rollback()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromrollback()
but you don't need to compose it with other operations.
-
completion
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> completion()
Likecompletion()
but with a callbackUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
completionAndAwait
public Void completionAndAwait()
Blocking variant ofcompletion()
.This method waits 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 a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
completionAndForget
public void completionAndForget()
Variant ofcompletion()
that ignores the result of the operation.This method subscribes on the result of
completion()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcompletion()
but you don't need to compose it with other operations.
-
newInstance
public static Transaction newInstance(io.vertx.sqlclient.Transaction arg)
-
-