Module io.netty5.common
Package io.netty5.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.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.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.Resource<T extends Resource<T>> A resource that has a life-time, and can be closed.ResourceLeakHint A hint object that provides human-readable message for easier resource leak tracking.ResourceLeakTracker<T> SafeCloseable ASafeCloseablecan be safely closed without risk of an exception being thrown.Send<T extends Resource<T>> A temporary holder of aResource, used for transferring the ownership of the resource from one thread to another.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). -
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.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.ReferenceCountUtil Collection of method to handle objects that may implementReferenceCounted.ResourceLeakDetector<T> ResourceLeakDetectorFactory This static factory should be used to loadResourceLeakDetectors as neededVersion 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). -
Annotation Types Summary Annotation Type Description SuppressForbidden Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.