Package akka.stream
Class Supervision
- java.lang.Object
-
- akka.stream.Supervision
-
public class Supervision extends java.lang.Object
Scala API: The stream will be completed with failure if application code for processing an element throws an exception.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Supervision.Directive
static class
Supervision.Restart$
Scala API: The element is dropped and the stream continues after restarting the operator if application code for processing an element throws an exception.static class
Supervision.Resume$
Scala API: The element is dropped and the stream continues if application code for processing an element throws an exception.static class
Supervision.Stop$
-
Constructor Summary
Constructors Constructor Description Supervision()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Function<java.lang.Throwable,Supervision.Directive>
getRestartingDecider()
Java API: Decider function that returnsrestart()
for all exceptions.static Function<java.lang.Throwable,Supervision.Directive>
getResumingDecider()
Java API: Decider function that returnsresume()
for all exceptions.static Function<java.lang.Throwable,Supervision.Directive>
getStoppingDecider()
Java API: Decider function that returnsstop()
for all exceptions.static Supervision.Restart$
restart()
static scala.Function1<java.lang.Throwable,Supervision.Directive>
restartingDecider()
Scala API:Decider
that returnsRestart
for all exceptions.static Supervision.Resume$
resume()
static scala.Function1<java.lang.Throwable,Supervision.Directive>
resumingDecider()
Scala API:Decider
that returnsResume
for all exceptions.static Supervision.Stop$
stop()
static scala.Function1<java.lang.Throwable,Supervision.Directive>
stoppingDecider()
Scala API:Decider
that returnsStop
for all exceptions.
-
-
-
Method Detail
-
stop
public static Supervision.Stop$ stop()
-
resume
public static Supervision.Resume$ resume()
-
restart
public static Supervision.Restart$ restart()
-
stoppingDecider
public static scala.Function1<java.lang.Throwable,Supervision.Directive> stoppingDecider()
Scala API:Decider
that returnsStop
for all exceptions.- Returns:
- (undocumented)
-
getStoppingDecider
public static Function<java.lang.Throwable,Supervision.Directive> getStoppingDecider()
Java API: Decider function that returnsstop()
for all exceptions.- Returns:
- (undocumented)
-
resumingDecider
public static scala.Function1<java.lang.Throwable,Supervision.Directive> resumingDecider()
Scala API:Decider
that returnsResume
for all exceptions.- Returns:
- (undocumented)
-
getResumingDecider
public static Function<java.lang.Throwable,Supervision.Directive> getResumingDecider()
Java API: Decider function that returnsresume()
for all exceptions.- Returns:
- (undocumented)
-
restartingDecider
public static scala.Function1<java.lang.Throwable,Supervision.Directive> restartingDecider()
Scala API:Decider
that returnsRestart
for all exceptions.- Returns:
- (undocumented)
-
getRestartingDecider
public static Function<java.lang.Throwable,Supervision.Directive> getRestartingDecider()
Java API: Decider function that returnsrestart()
for all exceptions.- Returns:
- (undocumented)
-
-