Interface 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    acceptCommit(org.hyperledger.fabric.sdk.BlockEvent.TransactionEvent transactionEvent)
    Called to notify the listener that a given peer has processed a transaction.
    void
    Called to notify the listener of a communication failure with a given peer.
  • Method Details

    • acceptCommit

      void acceptCommit(org.hyperledger.fabric.sdk.BlockEvent.TransactionEvent transactionEvent)
      Called to notify the listener that a given peer has processed a transaction.
      Parameters:
      transactionEvent - Transaction event information.
    • acceptDisconnect

      void acceptDisconnect(PeerDisconnectEvent disconnectEvent)
      Called to notify the listener of a communication failure with a given peer.
      Parameters:
      disconnectEvent - Disconnect event information.