Class Transaction

java.lang.Object
io.vertx.rxjava3.sqlclient.Transaction
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class Transaction extends Object implements io.vertx.lang.rx.RxDelegate
A transaction.

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

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<Transaction> __TYPE_ARG
  • Constructor Details

    • Transaction

      public Transaction(Transaction delegate)
    • Transaction

      public Transaction(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public Transaction getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • 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 completion Future that succeeds when the transaction commits and fails with TransactionRollbackException when the transaction rolls back.
      Returns:
      the transaction result
    • rxCompletion

      public Completable rxCompletion()
      Return the transaction completion Future that succeeds when the transaction commits and fails with TransactionRollbackException when the transaction rolls back.
      Returns:
      the transaction result
    • newInstance

      public static Transaction newInstance(Transaction arg)