StreamRefs

org.apache.pekko.stream.scaladsl.StreamRefs
object StreamRefs

Factories for creating stream refs.

Attributes

Source
StreamRefs.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
StreamRefs.type

Members list

Value members

Concrete methods

def sinkRef[T](): Source[T, SinkRef[T]]

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.

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.

Attributes

Source
StreamRefs.scala
def sourceRef[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 directly in place of the local Sink.

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.

Attributes

Source
StreamRefs.scala