Class IntervalStreamFactory
- java.lang.Object
-
- org.streamingpool.core.service.streamfactory.IntervalStreamFactory
-
- All Implemented Interfaces:
StreamFactory
public class IntervalStreamFactory extends java.lang.Object implements StreamFactory
-
-
Constructor Summary
Constructors Constructor Description IntervalStreamFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ErrorStreamPair<T>create(StreamId<T> id, DiscoveryService discoveryService)
-
-
-
Method Detail
-
create
public <T> ErrorStreamPair<T> create(StreamId<T> 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
-
-