Class StreamRefs$


  • public class StreamRefs$
    extends java.lang.Object
    Factories for creating stream refs.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static StreamRefs$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamRefs$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> Source<T,​SinkRef<T>> sinkRef()
      A local Source which materializes a SinkRef which can be used by other streams (including remote ones), to publish data to this local stream, as if they were attached directly in place of the local Source.
      <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 directly in place of the local Sink.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final StreamRefs$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • StreamRefs$

        public StreamRefs$()
    • Method Detail

      • sourceRef

        public <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 directly in place of the local Sink.

        Adheres to pekko.stream.StreamRefAttributes.

        See more detailed documentation on SourceRef.

      • sinkRef

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

        Adheres to pekko.stream.StreamRefAttributes.

        See more detailed documentation on SinkRef.