Package io.netty.util
package io.netty.util
Utility classes used across multiple packages.
-
ClassDescriptionAbstractConstant<T extends AbstractConstant<T>>Base implementation of
Constant
.Abstract base class for classes wants to implementReferenceCounted
.A string which has been encoded into a character encoding whose character always takes a single byte, similarly to ASCII.A collection of utility methods that is related with handlingAsciiString
.AsyncMapping<IN,OUT> Attribute<T>An attribute which allows to store a value reference.AttributeKey<T>Key which can be used to accessAttribute
out of theAttributeMap
.HoldsAttribute
s which can be accessed viaAttributeKey
.Represents a supplier ofboolean
-valued results.Provides a mechanism to iterate over a collection of bytes.AByteProcessor
which finds the first appearance which is not of a specific byte.AByteProcessor
which finds the first appearance of a specific byte.A utility class that provides various common operations and constants related withCharset
and its relevant classes.A singleton which is safe to compare via the==
operator.ConstantPool<T extends Constant<T>>A pool ofConstant
s.DefaultAttributeMap
implementation which not exibit any blocking behaviour on attribute lookup while using a copy-on-write approach on the modify path.
Attributes lookup and remove exibitO(logn)
time worst-case complexity, henceattribute::set(null)
is to be preferred toremove
.Deprecated.Deprecated.Deprecated.Immutable mapping from domain name pattern to its associated value object.Builder that allows to buildMapping
s that support DNS wildcard matching.ATimer
optimized for approximated I/O timeout scheduling.Bucket that stores HashedWheelTimeouts.Abstraction for hash code generation and equality comparison.AnIllegalStateException
which is raised when a user attempts to access aReferenceCounted
whose reference count has been decreased to 0 (and consequently freed).Represents a supplier ofint
-valued results.Mapping<IN,OUT> Maintains the mapping from the objects of one type to the objects of the other type.A utility class for wrapping calls toRuntime
.Holder class for available processors to enable testing.A class that holds a number of network-related constants.Recycler<T>Light-weight object pool based on a thread-local stack.This is an implementation ofMessagePassingQueue
, similar to what might be returned fromPlatformDependent.newMpscQueue(int)
, but intended to be used for debugging purpose.A reference-counted object that requires explicit deallocation.Collection of method to handle objects that may implementReferenceCounted
.Releases the objects when the thread that calledReferenceCountUtil.releaseLater(Object)
has been terminated.Deprecated.please useResourceLeakTracker
as it may lead to false-positives.Represents the level of resource leak detection.This static factory should be used to loadResourceLeakDetector
s as neededDefault implementation that loads custom leak detector via system propertyDeprecated.This class will be removed in the future version.A hint object that provides human-readable message for easier resource leak tracking.A specialError
which is used to signal some state or request by throwing it.Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.Deprecated.will be removed in the next major releaseSchedulesTimerTask
s for one-time future execution in a background thread.A task which is executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)
.Represents a supplier ofboolean
-valued results which doesn't throw any checked exceptions.Retrieves the version information of available Netty artifacts.
DomainWildcardMappingBuilder
instead.