That is not supported. You have to filter in the destination (or put another actor in-between). /Patrik tors 22 juni 2017 kl. 08:44 skrev Gajendra Naidu <[email protected]>:
> Just wondering if there is a way in AKKA - DistributedPubSub to subscribe > messages with some filter like take the function as a parameter. The > function should be like f(x) => boolean and send the message if the > function returns true. > > mediator ? DistributedPubSubMediator.Subscribe(subscription, ( x => true), > self) > > This way message queuing to the subscriber can be avoided. > > Gajendra > > -- > >>>>>>>>>> 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.
