/** * Pause execution for the requested delay. * Throws a runtime exception if something goes wrong. */ public void pauseFor(final long timeInMilliseconds) { try { sleepFor(timeInMilliseconds); } catch (InterruptedException e) { LOGGER.error("Wait interrupted:" + e.getMessage()); throw new RuntimeException("System timer interrupted", e); } }
/** * Pause execution for the requested delay. * Throws a runtime exception if something goes wrong. */ public void pauseFor(final long timeInMilliseconds) { try { sleepFor(timeInMilliseconds); } catch (InterruptedException e) { LOGGER.error("Wait interrupted:" + e.getMessage()); throw new RuntimeException("System timer interrupted", e); } }