sun.misc.Unsafe
object.
You can disable the use of sun.misc.Unsafe
if you specify
the system property io.netty.noUnsafe.
Modifier and Type | Class and Description |
---|---|
private static class | |
private static class | |
private static interface |
Modifier and Type | Field and Description |
---|---|
private static final int | |
private static final String[] | |
public static final boolean | |
private static final int | |
private static final long | |
private static final boolean | |
private static final Cleaner | |
private static final boolean | |
private static final AtomicLong | |
private static final long | |
private static final boolean | |
private static final boolean | |
private static final boolean | |
private static final boolean | |
private static final String | |
private static final String | |
private static final Set | |
private static final InternalLogger | |
private static final int | |
private static final long | |
private static Pattern | |
private static final boolean | |
private static final int | |
private static final int | |
private static final Cleaner | |
private static final String | |
private static final String | |
private static final String[] | |
private static final PlatformDependent. | |
private static final File | |
private static final int | |
private static final Throwable | |
private static final boolean |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private static void | |
pack-priv static void | addFilesystemOsClassifiers(final Set<String> allowedClassifiers, final Set<String> availableClassifiers)
|
pack-priv static boolean | |
public static int | |
private static int | |
public static long | |
public static ByteBuffer | |
public static ByteBuffer | |
public static long | |
public static byte[] | |
public static int | |
private static int | |
public static long | |
private static long | |
public static boolean | canEnableTcpNoDelayByDefault()
Returns |
public static void | |
public static void | |
public static void | |
public static void | |
public static File | |
private static void | |
public static ByteBuffer | |
public static long | |
public static boolean | directBufferPreferred()
Returns |
public static boolean | equals(byte[]
the first byte array. bytes1, int the position (inclusive) to start comparing in startPos1, byte[] bytes1 .the second byte array. bytes2, int the position (inclusive) to start comparing in startPos2, int bytes2 .the amount of bytes to compare. This is assumed to be validated as not going out of bounds
by the caller. length)Compare two |
public static int | Returns: 0 if not equal. 1 if equal.the first byte array. bytes1, int the position (inclusive) to start comparing in startPos1, byte[] bytes1 .the second byte array. bytes2, int the position (inclusive) to start comparing in startPos2, int bytes2 .the amount of bytes to compare. This is assumed to be validated as not going out of bounds
by the caller. length)Compare two |
private static boolean | |
public static long | Returns: The estimated max direct memory, in bytes.Compute an estimate of the maximum amount of direct memory available to this JVM. |
public static void | |
public static void | freeDirectNoCleaner(ByteBuffer buffer)
This method MUST only be called for |
public static void | |
public static byte | |
public static byte | |
public static byte | |
public static ClassLoader | |
public static ClassLoader | |
public static int | |
public static int | |
public static int | |
public static int | |
private static int | |
public static int | |
public static long | |
public static long | |
public static long | |
private static long | |
private static Pattern | |
public static Object | |
public static short | |
public static short | |
private static short | |
public static ClassLoader | |
public static Throwable | |
public static boolean | |
public static boolean | |
public static int | Returns: The hash code ofbytes assuming ASCII character encoding.
The resulting hash code will be case insensitive.The array which contains the data to hash. bytes, int What index to start generating a hash code in startPos, int bytes The amount of bytes that should be accounted for in the computation. length)Calculate a hash code of a byte array assuming ASCII character encoding. |
public static int | Returns: The hash code ofbytes assuming ASCII character encoding.
The resulting hash code will be case insensitive.The array which contains the data to hash (assumed to be equivalent to a bytes)byte[] ).Calculate a hash code of a byte array assuming ASCII character encoding. |
private static int | hashCodeAsciiCompute(CharSequence value, int offset, int hash)
Identical to |
pack-priv static int | |
private static int | hashCodeAsciiSanitizeByte(char value)
Identical to |
private static int | hashCodeAsciiSanitizeInt(CharSequence value, int offset)
Identical to |
private static int | hashCodeAsciiSanitizeShort(CharSequence value, int offset)
Identical to |
public static boolean | hasUnsafe()
Return |
private static void | |
public static boolean | |
public static boolean | |
private static boolean | |
public static boolean | |
private static boolean | |
public static boolean | |
private static boolean | |
public static boolean | |
public static boolean | |
private static boolean | |
public static boolean | Returns: false if bytes[startPos:startsPos+length) contains a value other than zero.The byte array. bytes, int The starting index (inclusive) in startPos, int bytes .The amount of bytes to check for zero. length)Determine if a subsection of an array is zero. |
private static boolean | |
public static int | |
public static long | |
public static boolean | |
private static boolean | |
public static <C> Deque | |
public static <K, V> ConcurrentMap | |
public static <K, V> ConcurrentMap | newConcurrentHashMap(int initialCapacity)
Creates a new fastest |
public static <K, V> ConcurrentMap | newConcurrentHashMap(int initialCapacity, float loadFactor)
Creates a new fastest |
public static <K, V> ConcurrentMap | newConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)
Creates a new fastest |
public static <K, V> ConcurrentMap | newConcurrentHashMap(Map<? extends K, ? extends V> map)
Creates a new fastest |
public static <T> Queue | newFixedMpscQueue(int capacity)
Create a new |
public static LongCounter | |
public static <T> Queue | Returns: A MPSC queue which may be unbounded.Create a new |
public static <T> Queue | newMpscQueue(final int maxCapacity)
Create a new |
public static <T> Queue | newMpscQueue(final int chunkSize, final int maxCapacity)
Create a new |
public static <T> Queue | newSpscQueue()
Create a new |
private static String | |
private static String | |
public static String | |
public static Set | |
public static String | |
private static String | |
private static String | |
public static long | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static ByteBuffer | reallocateDirectNoCleaner(ByteBuffer buffer, int capacity)
Reallocate a new |
public static long | |
pack-priv static void | |
public static void | |
public static void | |
public static Random | threadLocalRandom()
Return a |
public static void | |
private static <E extends Throwable> void | |
public static File | |
private static File | |
private static File | |
private static Throwable | |
public static long | |
public static boolean |