Package rekit.util
Class ThreadUtils
java.lang.Object
rekit.util.ThreadUtils
This class contains several methods for a better usability of Threads.
- Author:
- Dominik Fuchss
-
Method Summary
-
Method Details
-
sleep
public static boolean sleep(long time) Same asThread.sleep(long).- Parameters:
time- length of time to sleep in milliseconds- Returns:
trueif successfully sleeped the time,falseotherwise
-
runDaemon
Run aRunnableas daemon.- Parameters:
name- the name of the daemonr- the runnable- Returns:
- the thread
-
runThread
Run aRunnablenot a daemon.- Parameters:
name- the name of the threadr- the runnable- Returns:
- the thread
-