Package org.apache.commons.io
Class ThreadUtils
java.lang.Object
org.apache.commons.io.ThreadUtils
Helps work with threads.
- Since:
- 2.12.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ThreadUtils
Deprecated.TODO Make private in 3.0.Make private in 3.0.
-
-
Method Details
-
sleep
Sleeps for a guaranteed minimum duration unless interrupted.This method exists because Thread.sleep(100) can sleep for 0, 70, 100 or 200ms or anything else it deems appropriate. Read
Thread.sleep(long, int)
} for further interesting details.- Parameters:
duration
- the sleep duration.- Throws:
InterruptedException
- if interrupted- See Also:
-