Java Sleep sleepForAuditGranularity()

Here you can find the source of sleepForAuditGranularity()

Description

For audit, make sure event dates don't have the same millisecond.

License

Open Source License

Declaration

public static void sleepForAuditGranularity()
        throws InterruptedException 

Method Source Code

//package com.java2s;
/*//from w  w  w  .  j  a v a  2s  . c om
 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Florent Guillaume
 */

public class Main {
    /**
     * For audit, make sure event dates don't have the same millisecond.
     */
    public static void sleepForAuditGranularity()
            throws InterruptedException {
        Thread.sleep(2);
    }
}

Related

  1. sleepExp(int countFailures)
  2. sleepFixed(int milliSecond)
  3. sleepFor(int delay )
  4. sleepFor(int sleepDurationInMilliseconds)
  5. sleepFor(long millis)
  6. sleepForever()
  7. sleepForever()
  8. sleepForever()
  9. sleepForIOCatchup()