Package io.netty.util
Utility classes used across multiple packages.
-
Interface Summary Interface Description AsyncMapping<IN,OUT> Attribute<T> An attribute which allows to store a value reference.AttributeMap HoldsAttributes which can be accessed viaAttributeKey.BooleanSupplier Represents a supplier ofboolean-valued results.ByteProcessor Provides a mechanism to iterate over a collection of bytes.Constant<T extends Constant<T>> A singleton which is safe to compare via the==operator.HashingStrategy<T> Abstraction for hash code generation and equality comparison.IntSupplier 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.Recycler.Handle<T> ReferenceCounted A reference-counted object that requires explicit deallocation.ResourceLeak Deprecated. please useResourceLeakTrackeras it may lead to false-positives.ResourceLeakDetector.LeakListener ResourceLeakHint A hint object that provides human-readable message for easier resource leak tracking.ResourceLeakTracker<T> Timeout Timer SchedulesTimerTasks for one-time future execution in a background thread.TimerTask A task which is executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).UncheckedBooleanSupplier Represents a supplier ofboolean-valued results which doesn't throw any checked exceptions. -
Class Summary Class Description AbstractConstant<T extends AbstractConstant<T>> Base implementation ofConstant.AbstractReferenceCounted Abstract base class for classes wants to implementReferenceCounted.AsciiString A string which has been encoded into a character encoding whose character always takes a single byte, similarly to ASCII.AttributeKey<T> Key which can be used to accessAttributeout of theAttributeMap.ByteProcessor.IndexNotOfProcessor AByteProcessorwhich finds the first appearance which is not of a specific byte.ByteProcessor.IndexOfProcessor AByteProcessorwhich finds the first appearance of a specific byte.CharsetUtil A utility class that provides various common operations and constants related withCharsetand its relevant classes.ConstantPool<T extends Constant<T>> A pool ofConstants.DefaultAttributeMap 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.DomainMappingBuilder<V> Deprecated. UseDomainWildcardMappingBuilderinstead.DomainNameMapping<V> Deprecated. DomainNameMappingBuilder<V> Deprecated. DomainWildcardMappingBuilder<V> Builder that allows to buildMappings that support DNS wildcard matching.HashedWheelTimer ATimeroptimized for approximated I/O timeout scheduling.LeakPresenceDetector<T> Alternative leak detector implementation for reliable and performant detection in tests.LeakPresenceDetector.ResourceScope A resource scope keeps track of the resources for a particular set of threads.NettyRuntime A utility class for wrapping calls toRuntime.NetUtil A class that holds a number of network-related constants.Recycler<T> Light-weight object pool based on a thread-local stack.Recycler.EnhancedHandle<T> ReferenceCountUtil Collection of method to handle objects that may implementReferenceCounted.ResourceLeakDetector<T> ResourceLeakDetectorFactory This static factory should be used to loadResourceLeakDetectors as neededThreadDeathWatcher Deprecated. will be removed in the next major releaseVersion Retrieves the version information of available Netty artifacts. -
Enum Summary Enum Description ResourceLeakDetector.Level Represents the level of resource leak detection. -
Exception Summary Exception Description IllegalReferenceCountException AnIllegalStateExceptionwhich is raised when a user attempts to access aReferenceCountedwhose reference count has been decreased to 0 (and consequently freed).ResourceLeakException Deprecated. This class will be removed in the future version. -
Error Summary Error Description Signal A specialErrorwhich is used to signal some state or request by throwing it. -
Annotation Types Summary Annotation Type Description SuppressForbidden Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.