akka-supervision Questions

1

Assuming the supervisor actor defined a certain strategy: private static SupervisorStrategy strategy = new OneForOneStrategy(10, Duration.create("1 minute"), DeciderBuilder. match(Exception.cla...
Superinduce asked 16/8, 2017 at 6:0

2

Solved

I know it's possible to restart an akka-stream on error with a supervision strategy on the ActorMaterialzer val decider: Supervision.Decider = { case _: ArithmeticException => Supervision.Resu...
Olwen asked 31/3, 2016 at 16:7

1

Solved

I'm trying to supervise an Akka Actor, more specifically a Cluster Singleton created using ClusterSingletonManager. I'm trying to achieve more control over exceptions, logs and Actor's life cycle. ...
Glorygloryofthesnow asked 18/4, 2016 at 18:43

1

Solved

If I create an logging actor like so val logger: ActorRef = actorSystem.actorOf(Props(new Logger())) and the logger restarts due to an Exception, my logger stops writing to disk. I had been se...
Cloven asked 11/2, 2016 at 7:10

1

Solved

I'm currently looking into Fault Tolerance and Supervisor strategies in Akka (Java version). at ... http://doc.akka.io/docs/akka/2.3.2/java/fault-tolerance.html and http://doc.akka.io/docs/akka/2...
Bambi asked 21/5, 2014 at 2:49

2

Solved

How should I handle an exception thrown by the DbActor here ? I'm not sure how to handle it, should pipe the Failure case ? class RestActor extends Actor with ActorLogging { import context.dispat...
Downhearted asked 22/7, 2013 at 8:22

1

I'm playing with Akka and I have a design in which a supervisor actor has a child playing role A and several children playing role B. I want to define a supervision policy such as A failures are es...
Equally asked 21/1, 2014 at 19:28

1

Solved

If a remote actor is not available due to power loss Can the supervision strategy handle the situation? I have coded the example and I have shut down the remote actor system but it seems that the ...
Staffordshire asked 30/1, 2013 at 20:30

2

Solved

What is a good way of having an actor try something again on failure, but with growing time intervals between the retries? Let's say I want the actor to try again after 15 seconds, then 30 seconds,...
Gershom asked 28/4, 2012 at 14:56

2

Solved

I'm fairly new to Akka and new to distributed programming in general. Using Akka's Mist component, I've created supervised actors to handle HTTP requests asynchronously. Everything is currently run...
Responsive asked 26/8, 2011 at 16:3

1

Solved

Let's say I have a supervisor that has linked 2 actors. When my app shutsdown I want to shutdown those actors gracefully. Does calling supervisor.shutdown() stop all the actors or do I still need t...
Witless asked 18/2, 2011 at 20:16
1

© 2022 - 2024 — McMap. All rights reserved.