Interface DataStreamBuilder<D>
- Type Parameters:
D
- The type of the data handled by the created stream.
public interface DataStreamBuilder<D>
Builder to configure and create a stream via aspectable features.
- Since:
- 5.2.19
-
Method Summary
Modifier and TypeMethodDescription@NotNull DataStream<D>
Creates a new data stream.
Attention: This call should return very fast.<A> A
getAspect
(@NotNull StreamBuilderAspectType<A> type) Look up a specific aspect that may be supported by this builder.
Attention: This method may be called very often and must return very fast.
-
Method Details
-
getAspect
Look up a specific aspect that may be supported by this builder.
Attention: This method may be called very often and must return very fast.- Type Parameters:
A
- The object type of the aspect.- Parameters:
type
- The type of aspect.- Returns:
- An aspect implementer or
null
, if the aspect is not supported. - Since:
- 5.2.19
-
createDataStream
Creates a new data stream.
Attention: This call should return very fast. Expensive operations like loading data shouldn't be done within this method.- Returns:
- A new data stream.
- Since:
- 5.2.19
-