Interface Transaction


@Public @Evolving public interface Transaction
The class represents a transaction within Pulsar.
  • Method Details

    • commit

      Commit the transaction.
      Returns:
      the future represents the commit result.
    • abort

      Abort the transaction.
      Returns:
      the future represents the abort result.
    • getTxnID

      TxnID getTxnID()
      Get TxnID of the transaction.
      Returns:
      TxnID the txnID.