On 17.8.12 7:49, Jukka Zitting wrote:
Hi,
On Thu, Aug 16, 2012 at 4:06 PM, Michael Dürig <[email protected]> wrote:
Throwing exceptions client accesses the repository from an observation
listener which "takes too long" is fine for me. However I think the
repository should stop sending observation events as soon as a shut down is
pending.
Makes sense.
Can we use the same mechanism to stop event delivery when a client
unregisters a listener? Currently the removeEventListener() method is
synchronized with event delivery, which achieves the effect of no
events being delivered after the method returns, at the cost of the
method potentially blocking for a while.
Yes this is also the way it was before the changes in revision r1368425
came in. We only need to re-introduce the respective condition variable
in ChangeProcessor.
Michael
BR,
Jukka Zitting