public final class CompositionStreamFactory extends java.lang.Object implements StreamFactory
StreamFactory which provides a flexible way to create ReactiveStreams based on
composition of streams.| Constructor and Description |
|---|
CompositionStreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> ErrorStreamPair<T> |
create(StreamId<T> id,
DiscoveryService discoveryService)
|
public <T> ErrorStreamPair<T> create(StreamId<T> id, DiscoveryService discoveryService)
StreamFactoryStreamId and a DiscoveryService this method creates a
Publisher. The provided DiscoveryService can be used to discover other streams that are
needed in the creation process (stream combination, transformation, etc.)
NOTE: it is strongly discouraged the use of multiple threads inside this method (see
TypedStreamFactory documentation).create in interface StreamFactoryid - the id of the stream to creatediscoveryService - DiscoveryService which can be used by the factory to look up other streams
('upstream' of the one it will create)null if this factory cannot create the stream of the given id