Re: Detecting terminal condition for group of items in Ignite cache.

2016-12-14 Thread begineer
Thanks for reply first of all. Well I had this in back of my mind but it will be like duplicating the data which we already have in other cache(trades cache which I am currently querying). So other way I can think of is using spring scheduler with 1 minute fix-rate and check if any item moved to

Re: Detecting terminal condition for group of items in Ignite cache.

2016-12-14 Thread Taras Ledkov
Hi, What do you think about an atomic counter of not successful trades, e.g. the atomic cache with a company name as a key and Integer as a counter. You can update the counter when add trade (increment) and at the listener of the continuous query (decrement) and do something when counter equals

Detecting terminal condition for group of items in Ignite cache.

2016-12-14 Thread begineer
Hi, My sample application processes trades for different companies stored in Ignite cache. When all trades for particular company reaches SUCCESS stage, an automatic notification should be triggered and some other system/application will react to it. To do this, When ever any trade reaches SUCCESS