Class/Object

akka.stream.javadsl

Sink

Related Docs: object Sink | package javadsl

Permalink

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])

    Permalink

Type Members

  1. type Shape = SinkShape[In]

    Permalink

    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. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to any2stringadd[Sink[In, Mat]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Sink[In, Mat], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to ArrowAssoc[Sink[In, Mat]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addAttributes(attr: Attributes): Sink[In, Mat]

    Permalink

    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
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asScala: scaladsl.Sink[In, Mat]

    Permalink

    Converts this Sink to its Scala DSL counterpart.

  9. def async: Sink[In, Mat]

    Permalink

    Put an asynchronous boundary around this Sink

    Put an asynchronous boundary around this Sink

    Definition Classes
    SinkGraph
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  11. def contramap[In2](f: Function[In2, In]): Sink[In2, Mat]

    Permalink

    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

  12. def ensuring(cond: (Sink[In, Mat]) ⇒ Boolean, msg: ⇒ Any): Sink[In, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to Ensuring[Sink[In, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Sink[In, Mat]) ⇒ Boolean): Sink[In, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to Ensuring[Sink[In, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Sink[In, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to Ensuring[Sink[In, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Sink[In, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to Ensuring[Sink[In, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to StringFormat[Sink[In, Mat]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def mapMaterializedValue[Mat2](f: Function[Mat, Mat2]): Sink[In, Mat2]

    Permalink

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

  23. def named(name: String): Sink[In, Mat]

    Permalink

    Add a name attribute to this Sink.

    Add a name attribute to this Sink.

    Definition Classes
    SinkGraph
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  27. def runWith[M](source: Graph[SourceShape[In], M], materializer: Materializer): M

    Permalink

    Connect this Sink to a Source and run it.

  28. def shape: SinkShape[In]

    Permalink

    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
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    Sink → AnyRef → Any
  31. def traversalBuilder: LinearTraversalBuilder

    Permalink

    INTERNAL API.

    INTERNAL API.

    Every materializable element must be backed by a stream layout module

    Definition Classes
    SinkGraph
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withAttributes(attr: Attributes): Sink[In, Mat]

    Permalink

    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
  36. def [B](y: B): (Sink[In, Mat], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Sink[In, Mat] to ArrowAssoc[Sink[In, Mat]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Graph[SinkShape[In], Mat]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Sink[In, Mat] to any2stringadd[Sink[In, Mat]]

Inherited by implicit conversion StringFormat from Sink[In, Mat] to StringFormat[Sink[In, Mat]]

Inherited by implicit conversion Ensuring from Sink[In, Mat] to Ensuring[Sink[In, Mat]]

Inherited by implicit conversion ArrowAssoc from Sink[In, Mat] to ArrowAssoc[Sink[In, Mat]]

Ungrouped