Hi John, It seems like only the opposite is supported by the API now, subscribing a subscriber from all Classifiers, but not the other way around. Since the EventBus must know the classifier -> subscriber* relation it should be able to do this.
You can open a ticket for this feature, or even attempt to implement it and open a PR. -Endre On Thu, Jan 14, 2016 at 5:48 PM, John Ulric <[email protected]> wrote: > Hi, I'm looking into akka.event.japi.LookupEventBus and siblings > (ScanningEventBus, SubchannelEventBus). I think it would be useful to have > a method to unsubscribe all subscribers of a given classifier. > > As it is, when a classifier becomes obsolete, you need to keep a separate > application-specific registry that you can iterate through to unsubscribe > these, because LookupEventBus doesn't offer that kind of iterator. Am I > wrong? > > Possible Workaround: Send a special unsubscribe event to that classifier. > But then, all subscribers would have access to the EventBus to unsubscribe > themselves? > > Cheers, John > > -- > >>>>>>>>>> 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. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
