Class SuperviseBehavior<T>


  • public class SuperviseBehavior<T>
    extends Behavior<T>
    INTERNAL API A behavior type that could be supervised, Not for user extension.
    • Method Detail

      • onFailure

        public <Thr extends java.lang.Throwable> SuperviseBehavior<T> onFailure​(java.lang.Class<Thr> clazz,
                                                                                SupervisorStrategy strategy)
        Specify the SupervisorStrategy to be invoked when the wrapped behavior throws.

        Only exceptions of the given type (and their subclasses) will be handled by this supervision behavior.

      • onFailure$default$2

        public <Thr extends java.lang.Throwable> scala.reflect.ClassTag<scala.runtime.Nothing$> onFailure$default$2​(SupervisorStrategy strategy)