Re: [akka-user] Sending a message from an Akka actor at Fixed interval

2014-04-09 Thread Patrik Nordwall
On Wed, Apr 9, 2014 at 10:14 AM, Konrad Malawski < konrad.malaw...@project13.pl> wrote: > Hello Soumya, > You can use the scheduler the same way you're already doing it from within > an Actor too. > Inside an actor you should always schedule a message to self instead of running a block of code. Th

Re: [akka-user] Sending a message from an Akka actor at Fixed interval

2014-04-09 Thread Konrad Malawski
Hello Soumya, You can use the scheduler the same way you’re already doing it from within an Actor too. // inside an Actor (Subscribe Actor) context.system.scheduler.schedule(30.seconds, 30.seconds) { // your publishing here } I hope this helps, happy hakking! -- Cheers, Konrad Malawski blog.p

[akka-user] Sending a message from an Akka actor at Fixed interval

2014-04-08 Thread Soumya Simanta
NOTE: Cross posting it here for better coverage. http://stackoverflow.com/questions/22952336/sending-a-message-from-an-akka-actor-at-fixed-interval I want to publish messages from an Actor at a fixed rate. I extended this example