org.apache.hadoop.util
Class ThreadUtil

java.lang.Object
  extended by org.apache.hadoop.util.ThreadUtil

@InterfaceStability.Evolving
public class ThreadUtil
extends Object


Constructor Summary
ThreadUtil()
           
 
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
 

Constructor Detail

ThreadUtil

public ThreadUtil()
Method Detail

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 © 2014 Apache Software Foundation. All Rights Reserved.