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:
true
if successfully sleeped the time,false
otherwise
-
runDaemon
Run aRunnable
as daemon.- Parameters:
name
- the name of the daemonr
- the runnable- Returns:
- the thread
-
runThread
Run aRunnable
not a daemon.- Parameters:
name
- the name of the threadr
- the runnable- Returns:
- the thread
-