actorSelection.resolveOne - does it retry?

240 views
Skip to first unread message

Eric Pederson

unread,
Apr 7, 2014, 6:04:07 PM4/7/14
to akka...@googlegroups.com
Hi guys:

Does actorSelection(path).resolveOne(timeout) retry?  For example, if it is called before the target actor is started, but the target actor does get started before the timeout elapses.

From the source it doesn't look like it but I may not be looking hard enough.

Thanks,

Heiko Seeberger

unread,
Apr 7, 2014, 7:38:16 PM4/7/14
to akka...@googlegroups.com
Eric,

The source never lies. If that doesn’t convince you, take a look at the docs:

"Resolve the ActorRef matching this selection. The result is returned as a Future that is completed with the ActorRef if such an actor exists. It is completed with failure ActorNotFound if no such actor exists or the identification didn't complete within the supplied timeout."

Heiko

--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


--

Heiko Seeberger
Twitter: @hseeberger
Blog: blog.heikoseeberger.name



Eric Pederson

unread,
Apr 7, 2014, 7:48:09 PM4/7/14
to akka...@googlegroups.com
Hi Heiko - yes. I did read the docs before consulting the source.  I was unsure if the timeout included retries.  

Thank you for the clarification. 
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/Xv6Rn4P7nyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


--
Sent from Gmail Mobile
Reply all
Reply to author
Forward
0 new messages