Java Sleep sleepForever()

Here you can find the source of sleepForever()

Description

sleep Forever

License

Apache License

Declaration

public static void sleepForever() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static void sleepForever() {
        while (true) {
            try {
                Thread.sleep(Long.MAX_VALUE);
            } catch (InterruptedException e) {
                //nothing
            }//from   w w w.j a  v a 2s .co m
        }
    }
}

Related

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