Class DetectionUtil

java.lang.Object
org.jboss.netty.util.internal.DetectionUtil

public final class DetectionUtil extends Object
Utility that detects various properties specific to the current runtime environment, such as Java version and the availability of the sun.misc.Unsafe object.
You can disable the use of sun.misc.Unsafe if you specify the System property org.jboss.netty.tryUnsafe with value of false. Default is true.
  • Method Details

    • isWindows

      public static boolean isWindows()
      Return true if the JVM is running on Windows
    • hasUnsafe

      public static boolean hasUnsafe()
    • javaVersion

      public static int javaVersion()