Class ThreadUtil
java.lang.Object
jodd.util.ThreadUtil
Thread utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidNotifies an object for synchronization purposes.static voidNotifies an object for synchronization purposes.static voidsleep()Puts a thread to sleep forever.static voidsleep(long ms) Puts a thread to sleep, without throwing an InterruptedException.static voidWaits for a object for synchronization purposes.static voidWaits for a object or a timeout for synchronization purposes.
-
Constructor Details
-
ThreadUtil
public ThreadUtil()
-
-
Method Details
-
sleep
public static void sleep(long ms) Puts a thread to sleep, without throwing an InterruptedException.- Parameters:
ms- the length of time to sleep in milliseconds
-
sleep
public static void sleep()Puts a thread to sleep forever. -
wait
Waits for a object for synchronization purposes. -
wait
Waits for a object or a timeout for synchronization purposes. -
notify
Notifies an object for synchronization purposes. -
notifyAll
Notifies an object for synchronization purposes. -
join
-
join
-
join
-