List of utility methods to do Thread Pause
void | pauseln(Object obj) pauseln System.out.println(obj); sleep(DEFAULT_SLEEP_TIME); |
void | pauseRequests(int length) Pauses the current threads' execution for the given number of milliseconds. Thread.sleep(length); |
long | pauseWaitUntil(long untilTargetTime) pause Wait Until long now = System.currentTimeMillis(); long dt = untilTargetTime - now; if (dt > 0) { synchronized (waitLock) { try { waitLock.wait(dt); } catch (InterruptedException e) { now = System.currentTimeMillis(); return now; |
void | pauseWriteRecord() pause Write Record WRITE_RECORD_PAUSED = true; |