Interface Checkpointer

All Superinterfaces:
Checkpoint
All Known Implementing Classes:
FileCheckpointer, InMemoryCheckpointer

public interface Checkpointer extends Checkpoint
Checkpointer allows update of a checkpoint position after events are successfully processed.
  • Method Details

    • checkpointBlock

      void checkpointBlock(long blockNumber) throws IOException
      Checkpoint a successfully processed block.

      Note that the block number is an unsigned 64-bit integer, with the sign bit used to hold the top bit of the number.

      Parameters:
      blockNumber - a ledger block number.
      Throws:
      IOException - if an I/O error occurs.
    • checkpointTransaction

      void checkpointTransaction(long blockNumber, String transactionId) throws IOException
      Checkpoint a transaction within a block.
      Parameters:
      blockNumber - a ledger block number.
      transactionId - transaction id within the block.
      Throws:
      IOException - if an I/O error occurs.
    • checkpointChaincodeEvent

      void checkpointChaincodeEvent(ChaincodeEvent event) throws IOException
      Checkpoint a chaincode event.
      Parameters:
      event - a chaincode event.
      Throws:
      IOException - if an I/O error occurs.