Package org.apache.pekko.stream
Class Supervision$
java.lang.Object
org.apache.pekko.stream.Supervision$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Supervision$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJava API: Decider function that returnsrestart()for all exceptions.Java API: Decider function that returnsresume()for all exceptions.Java API: Decider function that returnsstop()for all exceptions.restart()Java API: The element is dropped and the stream continues after restarting the operator if application code for processing an element throws an exception.scala.Function1<Throwable,Supervision.Directive> Scala API:Deciderthat returnsRestartfor all exceptions.resume()Java API: The element is dropped and the stream continues if application code for processing an element throws an exception.scala.Function1<Throwable,Supervision.Directive> Scala API:Deciderthat returnsResumefor all exceptions.stop()Java API: The stream will be completed with failure if application code for processing an element throws an exception.scala.Function1<Throwable,Supervision.Directive> Scala API:Deciderthat returnsStopfor all exceptions.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Supervision$
public Supervision$()
-
-
Method Details
-
stop
Java API: The stream will be completed with failure if application code for processing an element throws an exception. -
resume
Java API: The element is dropped and the stream continues if application code for processing an element throws an exception. -
restart
Java API: The element is dropped and the stream continues after restarting the operator if application code for processing an element throws an exception. Restarting an operator means that any accumulated state is cleared. This is typically performed by creating a new instance of the operator. -
stoppingDecider
Scala API:Deciderthat returnsStopfor all exceptions. -
getStoppingDecider
Java API: Decider function that returnsstop()for all exceptions. -
resumingDecider
Scala API:Deciderthat returnsResumefor all exceptions. -
getResumingDecider
Java API: Decider function that returnsresume()for all exceptions. -
restartingDecider
Scala API:Deciderthat returnsRestartfor all exceptions. -
getRestartingDecider
Java API: Decider function that returnsrestart()for all exceptions.
-