ActorRef mediator = DistributedPubSub.get( getContext().system() ).mediator();...mediator.tell( new DistributedPubSubMediator.Send( "/user/destination", out, localAffinity ), self() );--
>>>>>>>>>> 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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
patrik,
thanks for your prompt response.
another question: does mediator incorporate some kind of cluster management under the hood? for example, what happens in case all nodes with the addressee actor are removed? will i get a time out waiting for a callback or some kind of exception will be immediately thrown?
thanks again!
p.s. i use java api, if it's important.
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/DJFaDLNVWVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
If subscribing with a group name, each message published to a topic with the (sendOneMessageToEachGroup) flag is delivered via the suppliedRoutingLogic(default random) to one actor within each subscribing group
Future<Object> future = Patterns.ask( mediator, new DistributedPubSubMediator.Publish( "destination", messageObject, true ), new Timeout( Duration.create( 5, "seconds" ) ) );
--