Re: [IO] FilesystemMonitor responsiveness

2010-10-11 Thread Niall Pemberton
On Tue, Oct 12, 2010 at 1:00 AM, Gary Gregory wrote: > Hi All: > > Is there any reason why the FilesystemMonitor.run() method is not > short-circuited ASAP? For example, by doing this: Its more consistent - all observers get notified, rather than (possibly) having only some that are and some not

[IO] FilesystemMonitor responsiveness

2010-10-11 Thread Gary Gregory
Hi All: Is there any reason why the FilesystemMonitor.run() method is not short- circuited ASAP? For example, by doing this: /** * Run. */ public void run() { while (running) { for (FilesystemObserver observer : observers) { observer.checkAndN