Package io.netty.util
Utility classes used across multiple packages.
-
Interface Summary Interface Description AsciiString.CharEqualityComparator AsyncMapping<IN,OUT> Attribute<T> An attribute which allows to store a value reference.AttributeMap HoldsAttribute
s 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 useResourceLeakTracker
as it may lead to false-positives.ResourceLeakHint A hint object that provides human-readable message for easier resource leak tracking.ResourceLeakTracker<T> Timeout Timer SchedulesTimerTask
s 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.AsciiString.AsciiCaseInsensitiveCharEqualityComparator AsciiString.DefaultCharEqualityComparator AsciiString.GeneralCaseInsensitiveCharEqualityComparator AttributeKey<T> Key which can be used to accessAttribute
out of theAttributeMap
.ByteProcessor.IndexNotOfProcessor AByteProcessor
which finds the first appearance which is not of a specific byte.ByteProcessor.IndexOfProcessor AByteProcessor
which finds the first appearance of a specific byte.ByteProcessorUtils CharsetUtil A utility class that provides various common operations and constants related withCharset
and its relevant classes.ConstantPool<T extends Constant<T>> A pool ofConstant
s.DefaultAttributeMap 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
.DefaultAttributeMap.DefaultAttribute<T> DomainMappingBuilder<V> Deprecated. UseDomainWildcardMappingBuilder
instead.DomainNameMapping<V> Deprecated. DomainNameMappingBuilder<V> Deprecated. DomainNameMappingBuilder.ImmutableDomainNameMapping<V> Immutable mapping from domain name pattern to its associated value object.DomainWildcardMappingBuilder<V> Builder that allows to buildMapping
s that support DNS wildcard matching.DomainWildcardMappingBuilder.ImmutableDomainWildcardMapping<V> HashedWheelTimer ATimer
optimized for approximated I/O timeout scheduling.HashedWheelTimer.HashedWheelBucket Bucket that stores HashedWheelTimeouts.HashedWheelTimer.HashedWheelTimeout NettyRuntime A utility class for wrapping calls toRuntime
.NettyRuntime.AvailableProcessorsHolder Holder class for available processors to enable testing.NetUtil A class that holds a number of network-related constants.NetUtil.SoMaxConnAction NetUtilInitializations NetUtilInitializations.NetworkIfaceAndInetAddress NetUtilSubstitutions NetUtilSubstitutions.NetUtilLocalhost4Accessor NetUtilSubstitutions.NetUtilLocalhost4LazyHolder NetUtilSubstitutions.NetUtilLocalhost6Accessor NetUtilSubstitutions.NetUtilLocalhost6LazyHolder NetUtilSubstitutions.NetUtilLocalhostAccessor NetUtilSubstitutions.NetUtilLocalhostLazyHolder NetUtilSubstitutions.NetUtilNetworkInterfacesAccessor NetUtilSubstitutions.NetUtilNetworkInterfacesLazyHolder Recycler<T> Light-weight object pool based on a thread-local stack.Recycler.BlockingMessageQueue<T> This is an implementation ofMessagePassingQueue
, similar to what might be returned fromPlatformDependent.newMpscQueue(int)
, but intended to be used for debugging purpose.Recycler.DefaultHandle<T> Recycler.EnhancedHandle<T> Recycler.LocalPool<T> ReferenceCountUtil Collection of method to handle objects that may implementReferenceCounted
.ReferenceCountUtil.ReleasingTask Releases the objects when the thread that calledReferenceCountUtil.releaseLater(Object)
has been terminated.ResourceLeakDetector<T> ResourceLeakDetector.DefaultResourceLeak<T> ResourceLeakDetector.TraceRecord ResourceLeakDetectorFactory This static factory should be used to loadResourceLeakDetector
s as neededResourceLeakDetectorFactory.DefaultResourceLeakDetectorFactory Default implementation that loads custom leak detector via system propertySignal.SignalConstant ThreadDeathWatcher Deprecated. will be removed in the next major releaseThreadDeathWatcher.Entry ThreadDeathWatcher.Watcher Version 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 AnIllegalStateException
which is raised when a user attempts to access aReferenceCounted
whose 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 specialError
which 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.