It is hard to tell without the whole context, but another viable option may be 
to have a same thread timer, similar to what we have in the storm-kafka-client 
KafkaSpout. Please take a look 
here<https://github.com/apache/storm/blob/master/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/KafkaSpout.java#L594>.

Good luck.
Hugo

On Dec 18, 2016, at 10:06 PM, Chen Junfeng 
<[email protected]<mailto:[email protected]>> wrote:

So far I count tick tuples to solve this problem. But I am wondering if there 
is a better way ?


发件人: Matt Lowe<mailto:[email protected]>
发送时间: 2016年12月19日 14:00
收件人: [email protected]<mailto:[email protected]>
主题: Re: How to send multi tick tuple?

Count the ticks?

Best Regards
Matthew Lowe

On 19 Dec 2016, at 04:15, Chen Junfeng 
<[email protected]<mailto:[email protected]>> wrote:

Currently I use

conf.put(Config.TOPOLOGY_TICK_TUPLE_FREQ_SECS,1);


to create timer task where it sends a timer tick tuple every one seconds as I 
set. .

But now I need to create multiple timer tasks, for instance I need to be 
reminded every one second, ten seconds, one minutes on one topology. How should 
I do it?

Thanks!

Junfeng Chen

Reply via email to