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
- Alphabetic
- By Inheritance
- Sink
- Graph
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Sink(delegate: scaladsl.Sink[In, Mat])
Type Members
Value Members
-
def
addAttributes(attr: Attributes): Sink[In, Mat]
Add the given attributes to this Sink.
-
def
asScala: scaladsl.Sink[In, Mat]
Converts this Sink to its Scala DSL counterpart.
-
def
async: Sink[In, Mat]
Put an asynchronous boundary around this
Sink
-
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
-
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.
-
def
module: Module
INTERNAL API.
-
def
named(name: String): Sink[In, Mat]
Add a
attribute to this Sink.name
-
def
runWith[M](source: Graph[SourceShape[In], M], materializer: Materializer): M
Connect this
Sink
to aSource
and run it. -
def
shape: SinkShape[In]
The shape of a graph is all that is externally visible: its inlets and outlets.
-
def
toString(): String
- Definition Classes
- Sink → AnyRef → Any
-
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).