Interface FilteredBlockEventsRequest.Builder

All Superinterfaces:
Builder<EventsRequest<org.hyperledger.fabric.protos.peer.FilteredBlock>>, EventsBuilder<org.hyperledger.fabric.protos.peer.FilteredBlock>
Enclosing interface:
FilteredBlockEventsRequest

public static interface FilteredBlockEventsRequest.Builder extends EventsBuilder<org.hyperledger.fabric.protos.peer.FilteredBlock>
Builder used to create a new filtered block events request. The default behavior is to read events from the next committed block.
  • Method Details

    • startBlock

      FilteredBlockEventsRequest.Builder startBlock(long blockNumber)
      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 interface EventsBuilder<org.hyperledger.fabric.protos.peer.FilteredBlock>
      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 interface EventsBuilder<org.hyperledger.fabric.protos.peer.FilteredBlock>
      Parameters:
      checkpoint - a checkpoint position.
      Returns:
      This builder.
    • build

      Description copied from interface: Builder
      Build an instance.
      Specified by:
      build in interface Builder<EventsRequest<org.hyperledger.fabric.protos.peer.FilteredBlock>>
      Returns:
      A built instance.