T - the type of data that the stream contains@FunctionalInterface
public interface StreamCreator<T>
ReactiveStream. The implementations of
this interfaces should know a priori the type and how to create a ReactiveStream.| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<T> |
createWith(DiscoveryService discoveryService)
Creates a
ReactiveStream. |
org.reactivestreams.Publisher<T> createWith(DiscoveryService discoveryService)
ReactiveStream. The provided DiscoveryService can be used to discover other
ReactiveStreams in order to combine them during the creation process.
NOTE: it is strongly discouraged the use of multiple threads inside this method (see
TypedStreamFactory documentation).discoveryService - DiscoveryService which can be used by the factory to look up other streams
('upstream' of the one it will create)ReactiveStream