Interface StreamOut<O>

All Superinterfaces:
Comparable<Node>, Node
All Known Implementing Classes:
StreamGenerator, StreamJoin, StreamPipe, StreamSource

public interface StreamOut<O>
extends Node
Author:
Pierre Lecerf ([email protected]) Created on 2020/12/01
  • Method Details

    • into

      <NO> StreamPipe<O,​NO> into​(Transformer<O,​NO> transformer)
      Binds the current node into a Transformer, resulting in a new StreamPipe node.
      Type Parameters:
      NO - Output type of the pipe node
      Parameters:
      transformer - a Transformer actor
      Returns:
      the resulting StreamPipe node
    • into

      StreamSink<O> into​(Loader<O> loader)
      Binds the current node into a Loader, resulting in a new StreamSink node.
      Parameters:
      loader - a Loader actor
      Returns:
      the resulting StreamSink node
    • sink

      default StreamSink<O> sink​(Loader<O> loader)
      Synonymous with into(Loader), has the advantage of not allowing ambiguous lambdas.
      See Also:
      into(Loader)
    • join

      <JI,​ JO> StreamJoin<O,​JI,​JO> join​(FlowOut<JI> input, BiTransformer<O,​JI,​JO> transformer)
      Joins the current stream node with another non-stream flow using a bi-transformer join function.
      Type Parameters:
      JI - Input type from another flow
      JO - Output type of the joined flow
      Parameters:
      input - Flow with which to join the current flow.
      transformer - A bi-transformer function for performing the join.
      Returns:
    • accumulate

      <N> StreamAccumulator<O,​N> accumulate​(Accumulator<O,​N> accumulator)
      Type Parameters:
      N -
      Parameters:
      accumulator -
      Returns: