Packages

  • package root
    Definition Classes
    root
  • package akka
    Definition Classes
    root
  • package stream
    Definition Classes
    akka
  • package stage
    Definition Classes
    stream
  • abstract class GraphStageLogic extends AnyRef

    Represents the processing logic behind a GraphStage.

    Represents the processing logic behind a GraphStage. Roughly speaking, a subclass of GraphStageLogic is a collection of the following parts: * A set of InHandler and OutHandler instances and their assignments to the Inlets and Outlets of the enclosing GraphStage * Possible mutable state, accessible from the InHandler and OutHandler callbacks, but not from anywhere else (as such access would not be thread-safe) * The lifecycle hooks preStart and postStop * Methods for performing stream processing actions, like pulling or pushing elements

    The operator logic is completed once all its input and output ports have been closed. This can be changed by setting setKeepGoing to true.

    The postStop lifecycle hook on the logic itself is called once all ports are closed. This is the only tear down callback that is guaranteed to happen, if the actor system or the materializer is terminated the handlers may never see any callbacks to onUpstreamFailure, onUpstreamFinish or onDownstreamFinish. Therefore operator resource cleanup should always be done in postStop.

    Definition Classes
    stage
  • SubSinkInlet
  • SubSourceOutlet

class SubSourceOutlet[T] extends AnyRef

INTERNAL API

This allows the dynamic creation of an Outlet for a GraphStage which is connected to a Source that is available for materialization (e.g. using the subFusingMaterializer). Care needs to be taken to complete this Outlet when the operator shuts down lest the corresponding Sink be left hanging. It is good practice to use the timeout method to cancel this Outlet in case the corresponding Source is not materialized within a given time limit, see e.g. ActorMaterializerSettings.

To be thread safe this method must only be called from either the constructor of the graph operator during materialization or one of the methods invoked by the graph operator machinery, such as onPush and onPull.

Source
GraphStage.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SubSourceOutlet
  2. AnyRef
  3. 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 SubSourceOutlet(name: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to any2stringadd[SubSourceOutlet[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (SubSourceOutlet[T], B)
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to ArrowAssoc[SubSourceOutlet[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def complete(): Unit

    Complete this output port.

  9. def ensuring(cond: (SubSourceOutlet[T]) ⇒ Boolean, msg: ⇒ Any): SubSourceOutlet[T]
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to Ensuring[SubSourceOutlet[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (SubSourceOutlet[T]) ⇒ Boolean): SubSourceOutlet[T]
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to Ensuring[SubSourceOutlet[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): SubSourceOutlet[T]
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to Ensuring[SubSourceOutlet[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): SubSourceOutlet[T]
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to Ensuring[SubSourceOutlet[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def fail(ex: Throwable): Unit

    Fail this output port.

  16. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to StringFormat[SubSourceOutlet[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def isAvailable: Boolean

    Returns true if this output port can be pushed.

  20. def isClosed: Boolean

    Returns true if this output port is closed, but caution THIS WORKS DIFFERENTLY THAN THE NORMAL isClosed(out).

    Returns true if this output port is closed, but caution THIS WORKS DIFFERENTLY THAN THE NORMAL isClosed(out). Due to possibly asynchronous shutdown it may not return true immediately after complete() or fail() have returned.

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def push(elem: T): Unit

    Push to this output port.

  26. def setHandler(handler: OutHandler): Unit

    Set OutHandler for this dynamic output port; this needs to be done before the first substream callback can arrive.

  27. def source: Graph[SourceShape[T], NotUsed]

    Get the Source for this dynamic output port.

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def timeout(d: FiniteDuration): Unit

    Set the source into timed-out mode if it has not yet been materialized.

  30. def toString(): String
    Definition Classes
    SubSourceOutlet → AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (SubSourceOutlet[T], B)
    Implicit
    This member is added by an implicit conversion from SubSourceOutlet[T] to ArrowAssoc[SubSourceOutlet[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from SubSourceOutlet[T] to any2stringadd[SubSourceOutlet[T]]

Inherited by implicit conversion StringFormat from SubSourceOutlet[T] to StringFormat[SubSourceOutlet[T]]

Inherited by implicit conversion Ensuring from SubSourceOutlet[T] to Ensuring[SubSourceOutlet[T]]

Inherited by implicit conversion ArrowAssoc from SubSourceOutlet[T] to ArrowAssoc[SubSourceOutlet[T]]

Ungrouped