/** * The watching thread runnable method. */ @Override public void run() { try { while (!closed) { if (changesHaveOccurred()) { trigger(); } // Wait for the next scan. Thread.sleep(scanPeriod); } } catch (Throwable e) { LOGGER.error("An error have been encountered while watching resources - leaving the redeploy mode", e); close(); } }
/** * The watching thread runnable method. */ @Override public void run() { try { while (!closed) { if (changesHaveOccurred()) { trigger(); } // Wait for the next scan. Thread.sleep(scanPeriod); } } catch (Throwable e) { LOGGER.error("An error have been encountered while watching resources - leaving the redeploy mode", e); close(); } }