ConditionalTerminateInput

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

Input 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 InHandler
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def onPush(): Unit

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

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

Attributes

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

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

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

Attributes

Definition Classes
Source
GraphStage.scala

Inherited methods

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

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

Attributes

Inherited from:
InHandler
Source
GraphStage.scala