public class PlatformDependent extends Object
github.com/netty/netty/blob/master/common/src/main/java/io/netty/util/internal/PlatformDependent.java
.Constructor and Description |
---|
PlatformDependent() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasUnsafe()
Return
true if sun.misc.Unsafe was found on the classpath and can be used for acclerated
direct memory access. |
static <U,W> AtomicReferenceFieldUpdater<U,W> |
newAtomicReferenceFieldUpdater(Class<U> tclass,
String fieldName) |
public static <U,W> AtomicReferenceFieldUpdater<U,W> newAtomicReferenceFieldUpdater(Class<U> tclass, String fieldName)
public static boolean hasUnsafe()
true
if sun.misc.Unsafe
was found on the classpath and can be used for acclerated
direct memory access.Copyright © 2016. All rights reserved.