接口 Transaction


  • @Public
    @Evolving
    public interface Transaction
    The class represents a transaction within Pulsar.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.util.concurrent.CompletableFuture<java.lang.Void> abort()
      Abort the transaction.
      java.util.concurrent.CompletableFuture<java.lang.Void> commit()
      Commit the transaction.
      TxnID getTxnID()
      Get TxnID of the transaction.
    • 方法详细资料

      • 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.