Interface BlockEventsRequest.Builder
- All Superinterfaces:
Builder<EventsRequest<org.hyperledger.fabric.protos.common.Block>>, EventsBuilder<org.hyperledger.fabric.protos.common.Block>
- Enclosing interface:
BlockEventsRequest
public static interface BlockEventsRequest.Builder
extends EventsBuilder<org.hyperledger.fabric.protos.common.Block>
Builder used to create a new block 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:EventsBuilderSpecify 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:
startBlockin interfaceEventsBuilder<org.hyperledger.fabric.protos.common.Block>- Parameters:
blockNumber- a ledger block number.- Returns:
- This builder.
-
checkpoint
Description copied from interface:EventsBuilderReads events starting at the checkpoint position.- Specified by:
checkpointin interfaceEventsBuilder<org.hyperledger.fabric.protos.common.Block>- Parameters:
checkpoint- a checkpoint position.- Returns:
- This builder.
-
build
BlockEventsRequest build()Description copied from interface:BuilderBuild an instance.- Specified by:
buildin interfaceBuilder<EventsRequest<org.hyperledger.fabric.protos.common.Block>>- Returns:
- A built instance.
-