jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject Re: slow observation tests
Date Wed, 23 Oct 2013 13:51:13 GMT


On 23.10.13 3:08 , Jukka Zitting wrote:
> We'd just need to change the way we poll the LinkedBlockingQueue in
> ChangeDispatcher.Listener. Instead of polling the queue for new
> changes once every second, the ChangeProcessor could spawn a separate
> background thread that blocks waiting for the queue. As soon as a new
> change set is added, the thread would wake up and deliver the relevant
> events.

This would require a dedicated thread per listener though. AFIR this is 
way we didn't do it that way. OTOH, it would decouple different 
listeners from blocking each other.

Michael

Mime
View raw message