ConditionalTerminateOutput

org.apache.pekko.stream.stage.GraphStageLogic.ConditionalTerminateOutput
class ConditionalTerminateOutput(predicate: () => Boolean) extends OutHandler

Output handler that terminates the state upon receiving completion if the given condition holds at that time. The operator fails upon receiving a failure.

Attributes

Source
GraphStage.scala
Graph
Supertypes
trait OutHandler
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def onDownstreamFinish(cause: Throwable): Unit

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

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

Attributes

Definition Classes
Source
GraphStage.scala
override def onPull(): Unit

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.

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.

Attributes

Definition Classes
Source
GraphStage.scala

Deprecated and Inherited methods

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

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

Attributes

Deprecated
[Since version Akka 2.6.0]
Inherited from:
OutHandler
Source
GraphStage.scala