Interface EventsRequest<T>
- Type Parameters:
T- The type of events obtained by this request.
- All Superinterfaces:
Signable
- All Known Subinterfaces:
BlockAndPrivateDataEventsRequest, BlockEventsRequest, ChaincodeEventsRequest, FilteredBlockEventsRequest
A Fabric Gateway call to obtain events.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CloseableIterator<T> Get events.getEvents(UnaryOperator<CallOptions> options) Get events.default CloseableIterator<T> getEvents(CallOption... options) Deprecated.
-
Method Details
-
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
GatewayRuntimeExceptionduring 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
GatewayRuntimeExceptionduring iteration if a gRPC connection error occurs.- Parameters:
options- Function that transforms call options.- Returns:
- Ordered sequence of events.
-
getEvents
Deprecated.Replaced bygetEvents(UnaryOperator).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
GatewayRuntimeExceptionduring iteration if a gRPC connection error occurs.- Parameters:
options- Call options.- Returns:
- Ordered sequence of events.
-
getEvents(UnaryOperator).