Package io.netty.util.internal
Internal-use-only utilities which is not allowed to be used
outside Netty.
-
Interface Summary Interface Description Cleaner Allows to free directByteBuffer
s.LongCounter Counter for long.ObjectPool.Handle<T> Handle for an pooledObject
that will be used to notify theObjectPool
once it can reuse the pooledObject
again.ObjectPool.ObjectCreator<T> Creates a new Object which references the givenObjectPool.Handle
and callsObjectPool.Handle.recycle(Object)
once it can be re-used.PlatformDependent.ThreadLocalRandomProvider PriorityQueue<T> PriorityQueueNode Provides methods forDefaultPriorityQueue
to maintain internal state. -
Class Summary Class Description AppendableCharSequence ClassInitializerUtil Utility which ensures that classes are loaded by theClassLoader
.CleanerJava6 Allows to free directByteBuffer
by using Cleaner.CleanerJava9 Provide a way to clean a ByteBuffer on Java9+.ConcurrentSet<E> Deprecated. For removal in Netty 4.2.ConstantTimeUtils DefaultPriorityQueue<T extends PriorityQueueNode> A priority queue which uses natural ordering of elements.EmptyArrays EmptyPriorityQueue<T> IntegerHolder Deprecated. For removal in netty 4.2InternalThreadLocalMap The internal data structure that stores the thread-local variables for Netty and allFastThreadLocal
s.LongAdderCounter MacAddressUtil MathUtil Math utility methods.NativeLibraryLoader Helper class to load JNI resources.NativeLibraryLoader.NoexecVolumeDetector NativeLibraryUtil A Utility to Call theSystem.load(String)
orSystem.loadLibrary(String)
.NoOpTypeParameterMatcher ObjectCleaner Allows a way to register someRunnable
that will executed once there are no references to anObject
anymore.ObjectCleaner.AutomaticCleanerReference ObjectPool<T> Light-weight object pool.ObjectPool.RecyclerObjectPool<T> ObjectUtil A grab-bag of useful utility methods.PendingWrite Some pending write which should be picked up later.PlatformDependent Utility that detects various properties specific to the current runtime environment, such as Java version and the availability of thesun.misc.Unsafe
object.PlatformDependent.AtomicLongCounter PlatformDependent.Mpsc PlatformDependent0 ThePlatformDependent
operations which requires access tosun.misc.*
.PromiseNotificationUtil Internal utilities to notifyPromise
s.ReadOnlyIterator<T> RecyclableArrayList A simple list which is recyclable.ReferenceCountUpdater<T extends ReferenceCounted> Common logic forReferenceCounted
implementationsReflectionUtil ResourcesUtil A utility class that provides various common operations and constants related to loading resourcesSocketUtils Provides socket operations with privileges enabled.StringUtil String utility class.SystemPropertyUtil A collection of utility methods to retrieve and parse the values of the Java system properties.ThreadExecutorMap Allow to retrieve theEventExecutor
for the callingThread
.ThreadLocalRandom A random number generator isolated to the current thread.ThrowableUtil TypeParameterMatcher TypeParameterMatcher.ReflectiveMatcher UnpaddedInternalThreadLocalMap Deprecated. This class will be removed in the future. -
Error Summary Error Description OutOfDirectMemoryError OutOfMemoryError
that is throws ifPlatformDependent.allocateDirectNoCleaner(int)
can not allocate a newByteBuffer
due memory restrictions. -
Annotation Types Summary Annotation Type Description SuppressJava6Requirement Annotation to suppress the Java 6 source code requirement checks for a method.UnstableApi Indicates a public API that can change at any time (even in minor/bugfix releases).