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 Type
    Method
    Description
    @NotNull DataStream<D>
    Creates a new data stream.
    Attention: This call should return very fast.
    <A> A
    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

      @Nullable <A> A getAspect(@NotNull @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.
      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

      @NotNull @NotNull DataStream<D> 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