Package org.jboss.netty.util.internal
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 thesun.misc.Unsafe
object.
You can disable the use ofsun.misc.Unsafe
if you specify the System property org.jboss.netty.tryUnsafe with value offalse
. Default istrue
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasUnsafe()
static boolean
isWindows()
Returntrue
if the JVM is running on Windowsstatic int
javaVersion()
-