Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a supervision strategy handle a ConnectException?

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 supervision strategy only takes into account Exceptions thrown by the remote actor once reached.

Since I'm not an Akka expert I'd like to know if this is achievable.

Edition:

I have already implemented the subscription to the events that indicates that error in the connection have occurred. I still need to have access to message the sender sent originally so the message do not get lost.

like image 834
juanpavergara Avatar asked Jan 30 '13 20:01

juanpavergara


1 Answers

From the documentation:

DeathWatch for Akka Remote does not (yet) get triggered by connection failures – which means that if the parent node or the network goes down, nobody will get notified. This feature may be added in a future release of Akka Remoting. Akka Cluster, however, has such functionality.

http://doc.akka.io/docs/akka/2.1.0/general/supervision.html#What_Lifecycle_Monitoring_Means

like image 170
juanpavergara Avatar answered Oct 06 '22 01:10

juanpavergara