Top Deprecated
Netty/Common 4.1.107.Final

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
io.netty.util.Attribute.getAndRemove()

please consider using getAndSet(Object) (with value of null).

io.netty.util.Attribute.remove()

please consider using set(Object) (with value of null).

io.netty.util.DomainMappingBuilder<
concrete type of value objects
V
>

Use DomainWildcardMappingBuilder instead.

io.netty.util.DomainMappingBuilder.add(String
the host name (optionally wildcard)
hostname
,
V
the output value that will be returned by DomainNameMapping#map(String) when the specified host name matches the specified input host name
output
)

Deprecated as a consequence of DomainMappingBuilder being deprecated. See corresponding docs for further information.

Returns:

new DomainNameMapping instance
io.netty.util.DomainMappingBuilder.build
()

Deprecated as a consequence of DomainNameMapping being deprecated. See corresponding docs for further information.

io.netty.util.DomainMappingBuilder.builder

Deprecated as a consequence of DomainNameMappingBuilder being deprecated. See corresponding docs for further information.

io.netty.util.DomainNameMapping.DomainNameMapping(V
the default value for map(String) to return when nothing matches the input
defaultValue
)

use DomainNameMappingBuilder to create and fill the mapping instead

io.netty.util.DomainNameMapping.DomainNameMapping(int
initial capacity for the internal map
initialCapacity
,
V
the default value for map(String) to return when nothing matches the input
defaultValue
)

use DomainNameMappingBuilder to create and fill the mapping instead

io.netty.util.DomainNameMapping.add(String
the host name (optionally wildcard)
hostname
,
V
the output value that will be returned by map(String) when the specified host name matches the specified input host name
output
)

use DomainNameMappingBuilder to create and fill the mapping instead

io.netty.util.DomainNameMappingBuilder.ImmutableDomainNameMapping<
concrete type of value objects
V
>

Deprecated as a consequence of DomainNameMapping being deprecated. See corresponding docs for further information.

io.netty.util.DomainNameMappingBuilder.ImmutableDomainNameMapping.add(String
the host name (optionally wildcard)
hostname
,
V
the output value that will be returned by map(String) when the specified host name matches the specified input host name
output
)

io.netty.util.DomainNameMappingBuilder.add(String
the host name (optionally wildcard)
hostname
,
V
the output value that will be returned by DomainNameMapping#map(String) when the specified host name matches the specified input host name
output
)

Deprecated as a consequence of DomainNameMappingBuilder being deprecated. See corresponding docs for further information.

Returns:

new DomainNameMapping instance
io.netty.util.DomainNameMappingBuilder.build
()

Deprecated as a consequence of DomainNameMapping being deprecated. See corresponding docs for further information.

io.netty.util.Recycler.Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)

Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).

io.netty.util.Recycler.Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread)

Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).

io.netty.util.Recycler.Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread, int delayedQueueRatio)

Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).

io.netty.util.ReferenceCountUtil.releaseLater(T msg)

this may introduce a lot of memory usage so it is generally preferable to manually release objects.

io.netty.util.ReferenceCountUtil.releaseLater(T msg, int decrement)

this may introduce a lot of memory usage so it is generally preferable to manually release objects.

io.netty.util.ResourceLeak

please use ResourceLeakTracker as it may lead to false-positives.

io.netty.util.ResourceLeakDetector.DefaultResourceLeak<T>

Deprecated as a consequence of ResourceLeak being deprecated. See corresponding docs for further information.

io.netty.util.ResourceLeakDetector.ResourceLeakDetector(String resourceType, int samplingInterval, long
This is deprecated and will be ignored.
maxActive
)

use ResourceLeakDetectorFactory#newResourceLeakDetector(Class, int, long).

io.netty.util.ResourceLeakDetector.reportInstancesLeak(String resourceType)

This method will no longer be invoked by ResourceLeakDetector.

io.netty.util.ResourceLeakDetector.track0(T obj, boolean force)

Deprecated as a consequence of ResourceLeakDetector.DefaultResourceLeak being deprecated. See corresponding docs for further information.

Returns:

a new instance of ResourceLeakDetector
io.netty.util.ResourceLeakDetectorFactory.newResourceLeakDetector
(Class<T>
the resource class used to initialize the ResourceLeakDetector
resource
,
int
the interval on which sampling takes place
samplingInterval
,
long
This is deprecated and will be ignored.
maxActive
)

Use newResourceLeakDetector(Class, int) instead.

Returns a new instance of a ResourceLeakDetector with the given resource class.

io.netty.util.ResourceLeakException

This class will be removed in the future version.

io.netty.util.ThreadDeathWatcher

will be removed in the next major release

io.netty.util.concurrent.FastThreadLocal.addToVariablesToRemove(InternalThreadLocalMap threadLocalMap, FastThreadLocal<?> variable)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.get(InternalThreadLocalMap threadLocalMap)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.initialize(InternalThreadLocalMap threadLocalMap)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.isSet(InternalThreadLocalMap threadLocalMap)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.remove(InternalThreadLocalMap threadLocalMap)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.removeFromVariablesToRemove(InternalThreadLocalMap threadLocalMap, FastThreadLocal<?> variable)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.set(InternalThreadLocalMap threadLocalMap, V value)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocal.setKnownNotUnset(InternalThreadLocalMap threadLocalMap, V value)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocalThread.setThreadLocalMap(InternalThreadLocalMap threadLocalMap)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocalThread.threadLocalMap

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.FastThreadLocalThread.threadLocalMap()

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.PromiseAggregator<
the type of value returned by the Future
V
,
the type of Future
F extends Future<V>
>

Use PromiseCombiner#PromiseCombiner(EventExecutor). GenericFutureListener implementation which consolidates multiple Futures into one, by listening to individual Futures and producing an aggregated result (success/failure) when all Futures have completed.

io.netty.util.concurrent.PromiseAggregator.add(Promise<V>... promises)

Deprecated as a consequence of PromiseAggregator being deprecated. See corresponding docs for further information.

io.netty.util.concurrent.PromiseCombiner.add(Promise<V>
the promise to add to this promise combiner
promise
)

Replaced by PromiseCombiner#add(Future).

io.netty.util.concurrent.PromiseCombiner.addAll(Promise<V>...
the promises to add to this promise combiner
promises
)

Replaced by PromiseCombiner#addAll(Future[])

io.netty.util.internal.ConcurrentSet<E>

For removal in Netty 4.2. Please use ConcurrentHashMap#newKeySet() instead

io.netty.util.internal.EmptyArrays.EMPTY_JAVAX_X509_CERTIFICATES

Deprecated as a consequence of X509Certificate being deprecated. See corresponding docs for further information.

io.netty.util.internal.IntegerHolder

For removal in netty 4.2

io.netty.util.internal.InternalThreadLocalMap

Deprecated as a consequence of UnpaddedInternalThreadLocalMap being deprecated.

io.netty.util.internal.InternalThreadLocalMap.counterHashCode

Deprecated as a consequence of IntegerHolder being deprecated. See corresponding docs for further information.

io.netty.util.internal.InternalThreadLocalMap.fastGet(FastThreadLocalThread thread)

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.internal.InternalThreadLocalMap.get()

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.internal.InternalThreadLocalMap.getIfSet()

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.internal.InternalThreadLocalMap.rp1

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp2

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp3

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp4

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp5

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp6

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp7

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.rp8

These padding fields will be removed in the future.

io.netty.util.internal.InternalThreadLocalMap.slowGet()

Deprecated as a consequence of InternalThreadLocalMap being deprecated. See corresponding docs for further information.

io.netty.util.internal.UnpaddedInternalThreadLocalMap

This class will be removed in the future.

io.netty.util.internal.shaded.org.jctools.queues.QueueFactory.newQueue(ConcurrentQueueSpec qs)

Deprecated as a consequence of ConcurrentQueueSpec being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.atomic.AtomicQueueFactory.newQueue(ConcurrentQueueSpec qs)

Deprecated as a consequence of ConcurrentQueueSpec being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.ConcurrentQueueSpec(int producers, int consumers, int capacity, Ordering ordering, Preference preference)

Deprecated as a consequence of Ordering and Preference being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.createBoundedMpmc(int capacity)

Deprecated as a consequence of ConcurrentQueueSpec being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.createBoundedMpsc(int capacity)

Deprecated as a consequence of ConcurrentQueueSpec being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.createBoundedSpmc(int capacity)

Deprecated as a consequence of ConcurrentQueueSpec being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.createBoundedSpsc(int capacity)

Deprecated as a consequence of ConcurrentQueueSpec being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.ordering

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.ConcurrentQueueSpec.preference

Deprecated as a consequence of Preference being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Ordering.FIFO

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Ordering.KFIFO

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Ordering.NONE

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Ordering.PRODUCER_FIFO

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Ordering.valueOf(String name)

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Ordering.values()

Deprecated as a consequence of Ordering being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Preference.LATENCY

Deprecated as a consequence of Preference being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Preference.NONE

Deprecated as a consequence of Preference being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Preference.THROUGHPUT

Deprecated as a consequence of Preference being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Preference.valueOf(String name)

Deprecated as a consequence of Preference being deprecated. See corresponding docs for further information.

io.netty.util.internal.shaded.org.jctools.queues.spec.Preference.values()

Deprecated as a consequence of Preference being deprecated. See corresponding docs for further information.