Class ThreadUtils
java.lang.Object
org.broadleafcommerce.common.util.ThreadUtils
This utility class provides methods that simplify thread operations.
- Author:
- Andre Azzolini (apazzolini)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
sleepUntil
(int year, int month, int day, int hour, int min, int sec) Sleeps the current thread until the specified future date.
-
Constructor Details
-
ThreadUtils
public ThreadUtils()
-
-
Method Details
-
sleepUntil
public static void sleepUntil(int year, int month, int day, int hour, int min, int sec) Sleeps the current thread until the specified future date. If the date is before the current time, the thread will resume operation immediately.- Parameters:
year
-month
-day
-hour
-min
-sec
-
-