All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xavax.util.Timers Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
//
// Copyright 2013 by Xavax, Inc. All Rights Reserved.
// Use of this software is allowed under the Xavax Open Software License.
// http://www.xavax.com/xosl.html
//
package com.xavax.util;

/**
 * Timers is a utility class for timers and sleeping.
 * 
 * @author [email protected]
 */
public final class Timers {

  /**
   * Private constructor provided to keep the compiler from generating
   * a public default constructor.
   */
  private Timers() {}

  /**
   * Sleep the specified number of milliseconds.
   * 
   * @param interval the amount of time in milliseconds to sleep.
   */
  public static void sleep(final long interval) {
    try {
      Thread.sleep(interval);
    }
    catch (Exception e) {
      // Ignore this exception.
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy