Hi, On Wed, Jan 21, 2015 at 12:06 PM, Robert Munteanu <[email protected]> wrote: > ...What I'd like to do is batch and process events only after some quiet > time ( 500 ms for instance ). For each event, I would place it in queue > and wait for 500ms to see if another event comes in. If another event > comes in, the timer is restarted. Once the timer is complete, I'd > process all the events in one go....
Note that you'll need some additional logic to make sure you still process events if they keep on coming without quiet time. > ...I can implement this myself ( and have fun ), but I was wondering > whether there are any building blocks in Sling that I can use for this.... I'm pretty sure I implemented something like this to process JCR events in this way, but I cannot find it now :-/ We probably don't have something reusable, if you can create a reusable EventClusteringQueue (?) that's useful. Maybe under bundles/commons? -Bertrand
