Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publisher subscribe in Scala

I'm new to scala, and I'm looking into the Publisher-Subscribe usage. There might be a problem with my Google skills, but I can't seem to find an example of this usage where I can specify which events should be observed by the subscriber.

Anyone got some examples?

Thanks!

like image 291
user485659 Avatar asked Oct 25 '11 16:10

user485659


1 Answers

If you need something really simple, then I suggest do it your self, it should not be that hard. But if you want something bigger then you can look at Eventbus. It is Java lib, but I am using it with Scala too.

An example implementation in Scala is described in http://jim-mcbeath.blogspot.com/2009/10/simple-publishsubscribe-example-in.html

like image 183
hellectronic Avatar answered Oct 11 '22 13:10

hellectronic