接口 Transaction


  • @Public
    @Evolving
    public interface Transaction
    The class represents a transaction within Pulsar.
    • 嵌套类概要

      嵌套类 
      修饰符和类型 接口 说明
      static class  Transaction.State  
    • 方法详细资料

      • commit

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

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

        TxnID getTxnID()
        Get TxnID of the transaction.
        返回:
        TxnID the txnID.