Interface Checkpointer
- All Superinterfaces:
Checkpoint
- All Known Implementing Classes:
FileCheckpointer, InMemoryCheckpointer
Checkpointer allows update of a checkpoint position after events are successfully processed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckpointBlock(long blockNumber) Checkpoint a successfully processed block.voidCheckpoint a chaincode event.voidcheckpointTransaction(long blockNumber, String transactionId) Checkpoint a transaction within a block.Methods inherited from interface Checkpoint
getBlockNumber, getTransactionId
-
Method Details
-
checkpointBlock
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
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
Checkpoint a chaincode event.- Parameters:
event- a chaincode event.- Throws:
IOException- if an I/O error occurs.
-