Package io.axoniq.axonserver.connector
Class ResultStreamPublisher<M>
- java.lang.Object
-
- io.axoniq.axonserver.connector.ResultStreamPublisher<M>
-
- Type Parameters:
M- the type of element consumed from the underlying stream
- All Implemented Interfaces:
org.reactivestreams.Publisher<M>
public class ResultStreamPublisher<M> extends Object implements org.reactivestreams.Publisher<M>
Publisherimplementation that allows to interact with aResultStream.When subscribed, it generates a new
ResultStreamthrough the provided supplier. The generatedResultStreamprovides the elements to be published.- Since:
- 4.6.0
- Author:
- Sara Pellegrini
-
-
Constructor Summary
Constructors Constructor Description ResultStreamPublisher(Supplier<ResultStream<M>> resultStreamSupplier)Constructs an instance based on the specifier supplier of underlyingResultStream.
-
-
-
Constructor Detail
-
ResultStreamPublisher
public ResultStreamPublisher(Supplier<ResultStream<M>> resultStreamSupplier)
Constructs an instance based on the specifier supplier of underlyingResultStream.- Parameters:
resultStreamSupplier- supplier ofResultStreamused to generate the underlying stream when the publisher is subscribed
-
-