Class ImmutableIdentifiedStreamCreator<T>
- java.lang.Object
-
- org.streamingpool.core.service.impl.ImmutableIdentifiedStreamCreator<T>
-
- Type Parameters:
T- the type of the data that the stream created using theStreamCreatorwill have
- All Implemented Interfaces:
IdentifiedStreamCreator<T>
public class ImmutableIdentifiedStreamCreator<T> extends java.lang.Object implements IdentifiedStreamCreator<T>
Immutable implementation of aIdentifiedStreamCreator.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImmutableIdentifiedStreamCreator(StreamId<T> id, StreamCreator<T> creator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamCreator<T>getCreator()StreamId<T>getId()static <T> IdentifiedStreamCreator<T>of(StreamId<T> id, StreamCreator<T> creator)
-
-
-
Constructor Detail
-
ImmutableIdentifiedStreamCreator
protected ImmutableIdentifiedStreamCreator(StreamId<T> id, StreamCreator<T> creator)
-
-
Method Detail
-
of
public static <T> IdentifiedStreamCreator<T> of(StreamId<T> id, StreamCreator<T> creator)
-
getId
public StreamId<T> getId()
- Specified by:
getIdin interfaceIdentifiedStreamCreator<T>
-
getCreator
public StreamCreator<T> getCreator()
- Specified by:
getCreatorin interfaceIdentifiedStreamCreator<T>
-
-