Class Transaction
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransaction
(io.vertx.sqlclient.Transaction delegate) Transaction
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
commit()
Likecommit()
with an handler to be notified when the transaction commit has completedBlocking variant ofcommit()
.void
Variant ofcommit()
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
Likecompletion()
but with a callbackBlocking variant ofcompletion()
.void
Variant ofcompletion()
that ignores the result of the operation.boolean
io.vertx.sqlclient.Transaction
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 completedBlocking variant ofrollback()
.void
Variant ofrollback()
that ignores the result of the operation.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Transaction
public Transaction(io.vertx.sqlclient.Transaction delegate) -
Transaction
-
-
Method Details
-
getDelegate
public io.vertx.sqlclient.Transaction getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
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
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
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
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
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
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
-