Is there a library in Java that does the following? A thread should repeatedly sleep for x milliseconds until a condition becomes true or the max t
thread
sleep
You should be using a Condition.
If you would like to have a timeout in addition to the condition, see await(long time, TimeUnit unit)