org.hyperledger.fabric.gateway.spi

## 接口 CommitListener

-     public interface CommitListener

  Implemented by listeners for transaction commit events. The listener is notified both of commit events received from peers and also of peer communication failures. A commit event may still be received from a peer following a disconnect event.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `acceptCommit(org.hyperledger.fabric.sdk.BlockEvent.TransactionEvent transactionEvent)` Called to notify the listener that a given peer has processed a transaction.
    `void` | `acceptDisconnect(PeerDisconnectEvent disconnectEvent)` Called to notify the listener of a communication failure with a given peer.

- - ### 方法详细资料

    - #### acceptCommit

          void acceptCommit(org.hyperledger.fabric.sdk.BlockEvent.TransactionEvent transactionEvent)

      Called to notify the listener that a given peer has processed a transaction.
      参数:
        `transactionEvent` - Transaction event information.

    - #### acceptDisconnect

          void acceptDisconnect(PeerDisconnectEvent disconnectEvent)

      Called to notify the listener of a communication failure with a given peer.
      参数:
        `disconnectEvent` - Disconnect event information.

Copyright © 2023. All rights reserved.