Package org.hyperledger.fabric.client
Interface ChaincodeEventsRequest.Builder
- All Superinterfaces:
Builder<EventsRequest<ChaincodeEvent>>
,EventsBuilder<ChaincodeEvent>
- Enclosing interface:
ChaincodeEventsRequest
Builder used to create a new chaincode events request. The default behavior is to read events from the next
committed block.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance.checkpoint
(Checkpoint checkpoint) Reads events starting at the checkpoint position.startBlock
(long blockNumber) Specify the block number at which to start reading events.
-
Method Details
-
startBlock
Description copied from interface:EventsBuilder
Specify the block number at which to start reading events.Note that the block number is an unsigned 64-bit integer, with the sign bit used to hold the top bit of the number.
- Specified by:
startBlock
in interfaceEventsBuilder<ChaincodeEvent>
- Parameters:
blockNumber
- a ledger block number.- Returns:
- This builder.
-
checkpoint
Description copied from interface:EventsBuilder
Reads events starting at the checkpoint position.- Specified by:
checkpoint
in interfaceEventsBuilder<ChaincodeEvent>
- Parameters:
checkpoint
- a checkpoint position.- Returns:
- This builder.
-
build
ChaincodeEventsRequest build()Description copied from interface:Builder
Build an instance.- Specified by:
build
in interfaceBuilder<EventsRequest<ChaincodeEvent>>
- Returns:
- A built instance.
-