Interface EventsRequest<T>

Type Parameters:
T - The type of events obtained by this request.
All Superinterfaces:
Signable
All Known Subinterfaces:
BlockAndPrivateDataEventsRequest, BlockEventsRequest, ChaincodeEventsRequest, FilteredBlockEventsRequest

public interface EventsRequest<T> extends Signable
A Fabric Gateway call to obtain events.
  • Method Details

    • getEvents

      default CloseableIterator<T> getEvents()
      Get events. The Java gRPC implementation may not begin reading events until the first use of the returned iterator.

      Note that the returned iterator may throw GatewayRuntimeException during iteration if a gRPC connection error occurs.

      Returns:
      Ordered sequence of events.
    • getEvents

      Get events. The Java gRPC implementation may not begin reading events until the first use of the returned iterator.

      Note that the returned iterator may throw GatewayRuntimeException during iteration if a gRPC connection error occurs.

      Parameters:
      options - Function that transforms call options.
      Returns:
      Ordered sequence of events.
    • getEvents

      @Deprecated default CloseableIterator<T> getEvents(CallOption... options)
      Deprecated.
      Get events. The Java gRPC implementation may not begin reading events until the first use of the returned iterator.

      Note that the returned iterator may throw GatewayRuntimeException during iteration if a gRPC connection error occurs.

      Parameters:
      options - Call options.
      Returns:
      Ordered sequence of events.