Class StreamRefs

java.lang.Object
org.apache.pekko.stream.javadsl.StreamRefs

public class StreamRefs extends Object
Factories for creating stream refs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Source<T,SinkRef<T>>
    A local Sink which materializes a SourceRef which can be used by other streams (including remote ones), to consume data from this local stream, as if they were attached in the spot of the local Sink directly.
    static <T> Sink<T,SourceRef<T>>
    A local Sink which materializes a SourceRef which can be used by other streams (including remote ones), to consume data from this local stream, as if they were attached in the spot of the local Sink directly.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StreamRefs

      public StreamRefs()
  • Method Details

    • sourceRef

      public static <T> Sink<T,SourceRef<T>> sourceRef()
      A local Sink which materializes a SourceRef which can be used by other streams (including remote ones), to consume data from this local stream, as if they were attached in the spot of the local Sink directly.

      Adheres to StreamRefAttributes.

      See more detailed documentation on SourceRef.

    • sinkRef

      public static <T> Source<T,SinkRef<T>> sinkRef()
      A local Sink which materializes a SourceRef which can be used by other streams (including remote ones), to consume data from this local stream, as if they were attached in the spot of the local Sink directly.

      Adheres to StreamRefAttributes.

      See more detailed documentation on SinkRef.