org.apache.hadoop.util
Class ThreadUtil
java.lang.Object
org.apache.hadoop.util.ThreadUtil
@InterfaceStability.Evolving
public class ThreadUtil
- extends Object
Method Summary |
static void |
sleepAtLeastIgnoreInterrupts(long millis)
Cause the current thread to sleep as close as possible to the provided
number of milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadUtil
public ThreadUtil()
sleepAtLeastIgnoreInterrupts
public static void sleepAtLeastIgnoreInterrupts(long millis)
- Cause the current thread to sleep as close as possible to the provided
number of milliseconds. This method will log and ignore any
InterruptedException
encountered.
- Parameters:
millis
- the number of milliseconds for the current thread to sleep
Copyright © 2012 Apache Software Foundation. All Rights Reserved.