final class Sink[-In, +Mat] extends Graph[SinkShape[In], Mat]

Java API

A Sink is a set of stream processing steps that has one open input. Can be used as a Subscriber

Source
Sink.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sink
  2. Graph
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Sink(delegate: scaladsl.Sink[In, Mat])

Type Members

  1. type Shape = SinkShape[In]

    Type-level accessor for the shape parameter of this graph.

    Type-level accessor for the shape parameter of this graph.

    Definition Classes
    Graph

Value Members

  1. def addAttributes(attr: Attributes): Sink[In, Mat]

    Add the given attributes to this Sink.

    Add the given attributes to this Sink. Further calls to withAttributes will not remove these attributes. Note that this operation has no effect on an empty Flow (because the attributes apply only to the contained processing stages).

    Definition Classes
    SinkGraph
  2. def asScala: scaladsl.Sink[In, Mat]

    Converts this Sink to its Scala DSL counterpart.

  3. def async: Sink[In, Mat]

    Put an asynchronous boundary around this Sink

    Put an asynchronous boundary around this Sink

    Definition Classes
    SinkGraph
  4. def contramap[In2](f: Function[In2, In]): Sink[In2, Mat]

    Transform this Sink by applying a function to each *incoming* upstream element before it is passed to the Sink

    Transform this Sink by applying a function to each *incoming* upstream element before it is passed to the Sink

    Backpressures when original Sink backpressures

    Cancels when original Sink backpressures

  5. def mapMaterializedValue[Mat2](f: Function[Mat, Mat2]): Sink[In, Mat2]

    Transform only the materialized value of this Sink, leaving all other properties as they were.

  6. def module: Module

    INTERNAL API.

    INTERNAL API.

    Every materializable element must be backed by a stream layout module

    Definition Classes
    SinkGraph
  7. def named(name: String): Sink[In, Mat]

    Add a name attribute to this Sink.

    Add a name attribute to this Sink.

    Definition Classes
    SinkGraph
  8. def runWith[M](source: Graph[SourceShape[In], M], materializer: Materializer): M

    Connect this Sink to a Source and run it.

  9. def shape: SinkShape[In]

    The shape of a graph is all that is externally visible: its inlets and outlets.

    The shape of a graph is all that is externally visible: its inlets and outlets.

    Definition Classes
    SinkGraph
  10. def toString(): String
    Definition Classes
    Sink → AnyRef → Any
  11. def withAttributes(attr: Attributes): Sink[In, Mat]

    Change the attributes of this Sink to the given ones and seal the list of attributes.

    Change the attributes of this Sink to the given ones and seal the list of attributes. This means that further calls will not be able to remove these attributes, but instead add new ones. Note that this operation has no effect on an empty Flow (because the attributes apply only to the contained processing stages).

    Definition Classes
    SinkGraph