Package akka.stream

Class Supervision


  • public class Supervision
    extends java.lang.Object
    • Constructor Detail

      • Supervision

        public Supervision()
    • Method Detail

      • stop

        public static Supervision.Stop$ stop()
        Java API: The stream will be completed with failure if application code for processing an element throws an exception.
        Returns:
        (undocumented)
      • resume

        public static Supervision.Resume$ resume()
        Java API: The element is dropped and the stream continues if application code for processing an element throws an exception.
        Returns:
        (undocumented)
      • restart

        public static Supervision.Restart$ 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.
        Returns:
        (undocumented)
      • stoppingDecider

        public static scala.Function1<java.lang.Throwable,​Supervision.Directive> stoppingDecider()
        Scala API: Decider that returns Stop for all exceptions.
        Returns:
        (undocumented)
      • getStoppingDecider

        public static Function<java.lang.Throwable,​Supervision.Directive> getStoppingDecider()
        Java API: Decider function that returns stop() for all exceptions.
        Returns:
        (undocumented)
      • resumingDecider

        public static scala.Function1<java.lang.Throwable,​Supervision.Directive> resumingDecider()
        Scala API: Decider that returns Resume for all exceptions.
        Returns:
        (undocumented)
      • getResumingDecider

        public static Function<java.lang.Throwable,​Supervision.Directive> getResumingDecider()
        Java API: Decider function that returns resume() for all exceptions.
        Returns:
        (undocumented)
      • restartingDecider

        public static scala.Function1<java.lang.Throwable,​Supervision.Directive> restartingDecider()
        Scala API: Decider that returns Restart for all exceptions.
        Returns:
        (undocumented)
      • getRestartingDecider

        public static Function<java.lang.Throwable,​Supervision.Directive> getRestartingDecider()
        Java API: Decider function that returns restart() for all exceptions.
        Returns:
        (undocumented)