Class Transaction


  • public class Transaction
    extends Object
    A transaction.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • Transaction

        public Transaction​(io.vertx.sqlclient.Transaction delegate)
      • Transaction

        public Transaction​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.sqlclient.Transaction getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • commit

        public io.smallrye.mutiny.Uni<Void> commit()
        Like commit() with an handler to be notified when the transaction commit has completed

        Unlike 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 of commit().

        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()
        Variant of commit() that ignores the result of the operation.

        This method subscribes on the result of commit(), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from commit() but you don't need to compose it with other operations.

      • rollback

        public io.smallrye.mutiny.Uni<Void> rollback()
        Like rollback() with an handler to be notified when the transaction rollback has completed

        Unlike 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 of rollback().

        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 of rollback() 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 from rollback() but you don't need to compose it with other operations.

      • completion

        public io.smallrye.mutiny.Uni<Void> completion()
        Like completion() but with a callback

        Unlike 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 of completion().

        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 of completion() 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 from completion() but you don't need to compose it with other operations.

      • newInstance

        public static Transaction newInstance​(io.vertx.sqlclient.Transaction arg)