You can change the routing logic in configuration. You can't change it for each message. It's possible to set it programatically. Then you do it via DistributedPubSubSettings and have to create the DistributedPubSubMediator actor yourself instead of using the DistributedPubSub extension. I recommend configuration.
mån 28 dec. 2015 kl. 19:07 skrev ash.ta <[email protected]>: > patrik, thanks again. > > the last question for now, i really appreciate your help. > the docs say: > > If subscribing with a group name, each message published to a topic with >> the (sendOneMessageToEachGroup) flag is delivered via the supplied >> RoutingLogic (default random) to one actor within each subscribing group > > > so, i'm doing something like > > Future<Object> future = Patterns.ask( mediator, new > DistributedPubSubMediator.Publish( "destination", messageObject, true ), new > Timeout( Duration.create( 5, "seconds" ) ) ); > > > do you know how can i set the RoutingLogic here programatically? > > > -- > >>>>>>>>>> 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. > -- >>>>>>>>>> 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.
