Interface Transaction


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

      • commit

        java.util.concurrent.CompletableFuture<java.lang.Void> commit()
        Commit the transaction.
        Returns:
        the future represents the commit result.
      • abort

        java.util.concurrent.CompletableFuture<java.lang.Void> abort()
        Abort the transaction.
        Returns:
        the future represents the abort result.
      • getTxnID

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