Java Thread Pause pauseRequests(int length)

Here you can find the source of pauseRequests(int length)

Description

Pauses the current threads' execution for the given number of milliseconds.

License

Open Source License

Parameter

Parameter Description
length the number of milliseconds to sleep

Declaration

private static void pauseRequests(int length) throws InterruptedException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from  w w  w  .  j a va  2  s.  co  m*/
     * Pauses the current threads' execution for the given number of milliseconds.
     * @param length the number of milliseconds to sleep
     */
    private static void pauseRequests(int length) throws InterruptedException {
        Thread.sleep(length);
    }
}

Related

  1. pause(long nbMilliseconds)
  2. pause(long pause)
  3. pause(long t)
  4. pauseForTime(String pauseTime)
  5. pauseln(Object obj)
  6. pauseWaitUntil(long untilTargetTime)
  7. pauseWriteRecord()