utils
Class ThreadUtils

java.lang.Object
  extended by utils.ThreadUtils

public class ThreadUtils
extends java.lang.Object

User: lyon Date: Jul 25, 2007 Time: 8:04:22 AM Copyright DocJava, Inc. 2005.


Constructor Summary
ThreadUtils()
           
 
Method Summary
static void randomSleep()
          sleep a random amount of time from 0 to 255 ms.
static void sleep()
           
static void sleep(float i)
          Sleep in seconds
static void sleep(int i)
          This will cause a block of the thread of execution for i seconds.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtils

public ThreadUtils()
Method Detail

sleep

public static void sleep(int i)
This will cause a block of the thread of execution for i seconds.

Parameters:
i - the number of seconds to block.

randomSleep

public static void randomSleep()
sleep a random amount of time from 0 to 255 ms.


sleep

public static void sleep(float i)
Sleep in seconds


sleep

public static void sleep()