111112113114115116117118
private void sleepSoundly(TimeDuration pollPeriod) { try { pollPeriod.getTimeUnit().sleep(pollPeriod.getDuration()); } catch (InterruptedException ie) { throw new RuntimeInterruptedException("interrupted!", ie); } }