c

akka.stream.stage

AbstractInOutHandler

abstract class AbstractInOutHandler extends InHandler with OutHandler

Java API: callback combination for output and input ports where termination logic is predefined (completing when upstream completes, failing when upstream fails, completing when downstream cancels).

Source
GraphStage.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractInOutHandler
  2. OutHandler
  3. InHandler
  4. AnyRef
  5. 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 AbstractInOutHandler()

Abstract Value Members

  1. abstract def onPull(): Unit

    Called when the output port has received a pull, and therefore ready to emit an element, i.e.

    Called when the output port has received a pull, and therefore ready to emit an element, i.e. GraphStageLogic.push() is now allowed to be called on this port.

    Definition Classes
    OutHandler
    Annotations
    @throws( classOf[Exception] )
  2. abstract def onPush(): Unit

    Called when the input port has a new element available.

    Called when the input port has a new element available. The actual element can be retrieved via the GraphStageLogic.grab() method.

    Definition Classes
    InHandler
    Annotations
    @throws( classOf[Exception] )

Concrete Value Members

  1. def onDownstreamFinish(): Unit

    Called when the output port will no longer accept any new elements.

    Called when the output port will no longer accept any new elements. After this callback no other callbacks will be called for this port.

    Definition Classes
    OutHandler
    Annotations
    @throws( classOf[Exception] )
  2. def onUpstreamFailure(ex: Throwable): Unit

    Called when the input port has failed.

    Called when the input port has failed. After this callback no other callbacks will be called for this port.

    Definition Classes
    InHandler
    Annotations
    @throws( classOf[Exception] )
  3. def onUpstreamFinish(): Unit

    Called when the input port is finished.

    Called when the input port is finished. After this callback no other callbacks will be called for this port.

    Definition Classes
    InHandler
    Annotations
    @throws( classOf[Exception] )