You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Jagadish Bihani <ja...@helpshift.com> on 2017/04/20 10:05:10 UTC

How to schedule and cancel timers

Hi

I have a use case where I want to schedule a timer for a given event and
then perform some action when that timer expires. I also want an ability to
cancel timer in case of some other events.

Is there any lower level windowing function exposed?  Or Do I need to
create ScheduledThreadPoolFactory instances and schedule timers in bolt
user code.
If later is applicable, is it a good way to do that?


-- 
Thanks and Regards,
Jagadish Bihani

Re: How to schedule and cancel timers

Posted by Roshan Naik <ro...@hortonworks.com>.
See if tick tuples helps you
http://kitmenke.com/blog/2014/08/04/tick-tuples-within-storm/
-roshan

From: Jagadish Bihani <ja...@helpshift.com>
Reply-To: "user@storm.apache.org" <us...@storm.apache.org>
Date: Thursday, April 20, 2017 at 3:05 AM
To: "user@storm.apache.org" <us...@storm.apache.org>
Subject: How to schedule and cancel timers

Hi

I have a use case where I want to schedule a timer for a given event and then perform some action when that timer expires. I also want an ability to cancel timer in case of some other events.

Is there any lower level windowing function exposed?  Or Do I need to create ScheduledThreadPoolFactory instances and schedule timers in bolt user code.
If later is applicable, is it a good way to do that?


--
Thanks and Regards,
Jagadish Bihani