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.AsyncMapping<IN,OUT> Attribute<T>An attribute which allows to store a value reference.AttributeKey<T>Key which can be used to accessAttributeout of theAttributeMap.HoldsAttributes which can be accessed viaAttributeKey.Represents a supplier ofboolean-valued results.Provides a mechanism to iterate over a collection of bytes.AByteProcessorwhich finds the first appearance which is not of a specific byte.AByteProcessorwhich finds the first appearance of a specific byte.A utility class that provides various common operations and constants related withCharsetand its relevant classes.A singleton which is safe to compare via the==operator.ConstantPool<T extends Constant<T>>A pool ofConstants.DefaultAttributeMapimplementation 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.Builder that allows to buildMappings that support DNS wildcard matching.ATimeroptimized for approximated I/O timeout scheduling.Abstraction for hash code generation and equality comparison.AnIllegalStateExceptionwhich is raised when a user attempts to access aReferenceCountedwhose reference count has been decreased to 0 (and consequently freed).Represents a supplier ofint-valued results.Alternative leak detector implementation for reliable and performant detection in tests.Special exception type to show that an allocation is prohibited at the moment, for example because theLeakPresenceDetector.ResourceScopeis closed, or because the current thread cannot be associated with a particular scope.A resource scope keeps track of the resources for a particular set of threads.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.A class that holds a number of network-related constants.Recycler<T>Light-weight object pool based on a thread-local stack.A reference-counted object that requires explicit deallocation.Collection of method to handle objects that may implementReferenceCounted.Deprecated.please useResourceLeakTrackeras it may lead to false-positives.Represents the level of resource leak detection.This static factory should be used to loadResourceLeakDetectors as neededDeprecated.This class will be removed in the future version.A hint object that provides human-readable message for easier resource leak tracking.A specialErrorwhich 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 releaseSchedulesTimerTasks 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.
DomainWildcardMappingBuilderinstead.