Package org.streamingpool.core.service
Interface StreamId<T>
-
- Type Parameters:
T- the type of the data that the a stream created from this id contains
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ClassBasedId,CombineWithLatestStreamId,CompositionStreamId,DelayedStreamId,DerivedStreamId,ErrorStreamId,FanOutStreamId,FilteredStreamId,FlattenedStreamId,IntervalStreamId,MergedErrorStreamId,NamedStreamId,OverlapBufferStreamId,StreamingPoolHook,ZippedStreamId
public interface StreamId<T> extends java.io.SerializableInterface for defining custom stream identifiers. Each stream is identified with oneStreamIdso a custom, domain-specific, implementation is expected to be provided.For example, a stream of random numbers may have a special implementation of
StreamIdthat includes the seed to be used in the number generation. Also, another implementation may include information about the range in which the numbers need to be scaled.