Assuming the supervisor actor defined a certain strategy:
private static SupervisorStrategy strategy =
new OneForOneStrategy(10, Duration.create("1 minute"), DeciderBuilder.
match(Exception.class, e -> resume()).
matchAny(o -> escalate()).build());
And lets say the actor was instructed to resume, but failed for the 11th time within the current duration.
What happens now?
Is the parent actor is escalating the problem?
Can it now stop the actor somehow in an ordered way (e.g. tell the child actor to close connection to DB)?
Is there another overide method to call in this case?