Hi, I have an OSGi EventListener which receives notifications related to a certain content tree. This listener works with a remote system and also writes to the repository.
When a lot of changes happen in the subtree I'm interested in, I get flooded with many events, and since I'm working with remote systems I have implemented some locking within the listener to make sure I send a coherent state. But this is starting to get hairy once I start writing to the repo as well. 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. 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. Thanks, Robert
