org.apache.jcs.utils.timing
Class SleepUtil

java.lang.Object
  extended by org.apache.jcs.utils.timing.SleepUtil

public class SleepUtil
extends java.lang.Object

Utility methods to help deal with thread issues.


Constructor Summary
SleepUtil()
           
 
Method Summary
static void sleepAtLeast(long milliseconds)
          Sleep for a specified duration in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SleepUtil

public SleepUtil()
Method Detail

sleepAtLeast

public static void sleepAtLeast(long milliseconds)
Sleep for a specified duration in milliseconds. This method is a platform-specific workaround for Windows due to its inability to resolve durations of time less than approximately 10 - 16 ms.

Parameters:
milliseconds - the number of milliseconds to sleep


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.