Package org.hyperledger.fabric.client
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 TypeMethodDescriptionvoid
checkpointBlock
(long blockNumber) Checkpoint a successfully processed block.void
Checkpoint a chaincode event.void
checkpointTransaction
(long blockNumber, String transactionId) Checkpoint a transaction within a block.Methods inherited from interface org.hyperledger.fabric.client.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.
-