There is no notion of an actor “being ready”—whoever has an ActorRef can send 
and the actor may or may not respond. The ActorRef is created before even the 
Actor’s constructor is started. preStart() runs after the constructor and 
before processing the first message.

Regards,

Roland

> 4 feb 2016 kl. 16:25 skrev Mahesh Govind <[email protected]>:
> 
> Thanks .
> One more clarification .
> 
> In the diagram for lifecyle methods given @  
> http://doc.akka.io/docs/akka/snapshot/java/lambda-actors.html
> 
> preStart() is called before Actor Incarnation (Outside the incarnation box). 
> 
> This was the point of confusion .
> 
> So does it means , before the Actor incarnation , the actor is ready 
> 
> regards
> Mahesh
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Thursday, February 4, 2016 at 8:13:29 PM UTC+5:30, rkuhn wrote:
> Hi Mahesh,
> 
> that hook already exists, it is called preStart().
> 
> Regards,
> 
> Roland
> 
>> 4 feb 2016 kl. 15:13 skrev Mahesh Govind <[email protected] <javascript:>>:
>> 
>> Dear Experts,
>> 
>> Is there any reason for not having a postStart()  method  to signify the 
>> successful starting of an actor .
>> Is there roadmap plan to add a postStart() lifecycle method .
>> 
>> I think this might be useful in initialization scenarios .
>> 
>> 
>> regards
>> Mahesh
>> 
>> ps: I saw similiar  request in an old thread .
>>  
>> 
>> 
>> -- 
>> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
>> >>>>>>>>>> Check the FAQ: 
>> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
>> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
>> >>>>>>>>>> <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 https://groups.google.com/group/akka-user 
>> <https://groups.google.com/group/akka-user>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> 
> Dr. Roland Kuhn
> Akka Tech Lead
> Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
> twitter: @rolandkuhn
>  <http://twitter.com/#!/rolandkuhn>
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/akka-user 
> <https://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
twitter: @rolandkuhn
 <http://twitter.com/#!/rolandkuhn>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to