Class WaitUtil

java.lang.Object
org.duracloud.common.util.WaitUtil

public class WaitUtil extends Object
A utility that provides a simple wait
Author:
Bill Branan Date: 7/19/13
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    wait(int seconds)
    Causes the current thread to waits for a given number of seconds.
    static void
    waitMs(long milliseconds)
    Causes the current thread to waits for a given number of milliseconds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • wait

      public static void wait(int seconds)
      Causes the current thread to waits for a given number of seconds.
      Parameters:
      seconds - - the number of seconds to wait
    • waitMs

      public static void waitMs(long milliseconds)
      Causes the current thread to waits for a given number of milliseconds.
      Parameters:
      milliseconds - - the number of milliseconds to wait