Class CombineWithLatestStreamFactory
- java.lang.Object
-
- org.streamingpool.core.service.streamfactory.CombineWithLatestStreamFactory
-
- All Implemented Interfaces:
StreamFactory
public class CombineWithLatestStreamFactory extends java.lang.Object implements StreamFactory
Factory forCombineWithLatestStreamId- See Also:
CombineWithLatestStreamId
-
-
Constructor Summary
Constructors Constructor Description CombineWithLatestStreamFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Y> ErrorStreamPair<Y>create(StreamId<Y> id, DiscoveryService discoveryService)
-
-
-
Method Detail
-
create
public <Y> ErrorStreamPair<Y> create(StreamId<Y> id, DiscoveryService discoveryService)
Description copied from interface:StreamFactoryGiven an implementation ofStreamIdand aDiscoveryServicethis method creates aPublisher. The providedDiscoveryServicecan 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
TypedStreamFactorydocumentation).- Specified by:
createin interfaceStreamFactory- Parameters:
id- the id of the stream to creatediscoveryService-DiscoveryServicewhich can be used by the factory to look up other streams ('upstream' of the one it will create)- Returns:
- the newly created stream or
nullif this factory cannot create the stream of the given id
-
-