KillSwitch

org.apache.pekko.stream.KillSwitch
trait KillSwitch

A KillSwitch allows completion of Graphs from the outside by completing Graphs of FlowShape linked to the switch. Depending on whether the KillSwitch is a UniqueKillSwitch or a SharedKillSwitch one or multiple streams might be linked with the switch. For details see the documentation of the concrete subclasses of this interface.

Attributes

Source
KillSwitch.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def abort(ex: Throwable): Unit

After calling KillSwitch#abort the linked Graphs of FlowShape are failed.

After calling KillSwitch#abort the linked Graphs of FlowShape are failed.

Attributes

Source
KillSwitch.scala
def shutdown(): Unit

After calling KillSwitch#shutdown the linked Graphs of FlowShape are completed normally.

After calling KillSwitch#shutdown the linked Graphs of FlowShape are completed normally.

Attributes

Source
KillSwitch.scala