return new OneForOneStrategy(maxRetries, Duration.create(duringSec, TimeUnit.SECONDS), decider);
}
public static SupervisorStrategy allForOne(int maxRetries, int duringSec, Function<Throwable, Directive> decider)
{
return new AllForOneStrategy(maxRetries, Duration.create(duringSec, TimeUnit.SECONDS), decider);
}