Module io.netty5.common
Package io.netty5.util.internal
Internal-use-only utilities which is not allowed to be used
outside Netty.
-
Interface Summary Interface Description 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.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
.ConstantTimeUtils DefaultPriorityQueue<T extends PriorityQueueNode> A priority queue which uses natural ordering of elements.EmptyArrays EmptyPriorityQueue<T> LongLongHashMap Internal primitive map implementation that is specifically optimised for the runs availability map use case inPoolChunk
.LongPriorityQueue Internal primitive priority queue, used byPoolChunk
.MacAddressUtil MathUtil Math utility methods.NativeLibraryLoader Helper class to load JNI resources.NoOpTypeParameterMatcher ObjectPool<T> Light-weight object pool.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.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 resourcesSendFromSupplier<T extends Resource<T>> SilentDispose Utility class for disposing of resources without propagating any exception thatResource.close()
might throw.SocketUtils 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
.ThrowableUtil TypeParameterMatcher -
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 UnsafeAccess Marker annotation for internal Netty classes that gives them permission to directly access theUnsafe
instance, if available.UnstableApi Indicates a public API that can change at any time (even in minor/bugfix releases).