public synchronized boolean handleChangedFile ( ChangedFile changedFile ) { File watchDir = getWatchDir ( changedFile . getFile ( ) ) ; SyncWorker worker = new SyncWorker ( changedFile , watchDir , endpoint ) ; try { addToWorkerList ( worker ) ; workerPool . execute ( worker ) ; return true ; } catch ( RejectedExecutionException e ) { workerList . remove ( worker ) ; return false ; } }
Notifies the SyncManager that a file has changed