M - the type of element consumed from the underlying streampublic class ResultStreamPublisher<M> extends Object implements org.reactivestreams.Publisher<M>
Publisher implementation that allows to interact with a ResultStream.
When subscribed, it generates a new ResultStream through the provided supplier.
The generated ResultStream provides the elements to be published.
| Constructor and Description |
|---|
ResultStreamPublisher(Supplier<ResultStream<M>> resultStreamSupplier)
Constructs an instance based on the specifier supplier of underlying
ResultStream. |
public ResultStreamPublisher(Supplier<ResultStream<M>> resultStreamSupplier)
ResultStream.resultStreamSupplier - supplier of ResultStream used to generate the underlying stream when the
publisher is subscribedCopyright © 2020–2022 AxonIQ BV. All rights reserved.