Hi,

Thanks for the reply, but sorry I didn't explain what I'm looking for. We 
are currently using OneForOneStrategy but I don't see where to hook into it 
(or how to extend it) so we know when the child Actor is stopped due to too 
many errors. 

Looking at the processFailure implementation in the OneForOneStrategy 
class, it doesn't appear to generate any special notification if the 
stats.requestRestartPermission returns false, it just calls 
context.stop(child). 

Is there something that tells us the stop was due to 'x errors in y time' 
vs. the Decider telling akka to stop it?

Thanks,

Chris 

On Tuesday, April 8, 2014 5:44:37 AM UTC-4, √ wrote:
>
> Hi Chris,
>
> already exists: 
> http://doc.akka.io/japi/akka/2.3.1/akka/actor/OneForOneStrategy.html#OneForOneStrategy(int,
>  
> scala.concurrent.duration.Duration, akka.japi.Function)
>
>
> On Mon, Apr 7, 2014 at 10:25 PM, Chris Curtin 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi,
>>
>> Anyone have an example SupervisoryStrategy that is implemented in Java?
>>
>> We want to be able to detect when Akka doesn't restart a child after it 
>> fails 'x times in y minutes' and the 'handleChildTerminated' looks like the 
>> correct place. (We want to alert production operations that something major 
>> is going wrong.)
>>
>> First, is that the method that gets called when the 'x in y minutes' 
>> logic fires? If not, where can I find out that this happened?
>>
>> Second, any Java examples? Found a few Scala examples but I'm struggling 
>> with how to extend a Scala class in Java.
>>
>> Thanks,
>>
>> Chris
>>
>>
>>  -- 
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Cheers,
> √
>  

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to