Interface CommitHandlerFactory

All Known Implementing Classes:
DefaultCommitHandlers
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CommitHandlerFactory
Functional interface describing a factory function for constructing CommitHandler instances.

Default implementations can be obtained from DefaultCommitHandlers.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String transactionId, Network network)
    Factory function to create a commit handler instance.
  • Method Details

    • create

      CommitHandler create(String transactionId, Network network)
      Factory function to create a commit handler instance.
      Parameters:
      transactionId - Transaction for which the instance is to handle commit events.
      network - Network on which the transaction is invoked.
      Returns:
      A commit handler.