Deprecated API
Contents
- Packages
- Interfaces
- Classes
- Enums
- Exception Classes
- Annotation Types
- Fields
- Methods
- Constructors
- Enum Constants
-
Deprecated PackagesPackageDescriptionuse NIO / EPOLL / KQUEUE transport.this transport will be removed in the next major version.use NIO based SCTP implementation.use NIO / EPOLL / KQUEUE transport.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained.This package has been deprecated with no replacement, because serialization can be a security liability
-
Deprecated InterfacesInterfaceDescriptionUse
ChannelFactoryinstead.UseByteProcessor.Not used anymore by newIoEventLoopGroupandIoEventLoopimplementationsthis transport will be removed in the next major version.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.UseCookieinstead.This class has been deprecated with no replacement, because serialization can be a security liabilityoverrideSingleThreadEventExecutor.wakesUpForTask(Runnable)to re-create this behaviouroverrideSingleThreadEventExecutor.wakesUpForTask(Runnable)to re-create this behaviourFor removal. Please useinstead.invalid reference
Recycler()please useResourceLeakTrackeras it may lead to false-positives.
-
Deprecated ClassesClassDescriptionDo not use.Do not use.Do not use.Do not use.use the Little Endian accessors, e.g.
getShortLE,getIntLEinstead.UsePromiseCombinerClass which is used to consolidate multiple channel futures into one, by listening to the individual futures and producing an aggregated result (success/failure) when all futures have completed.usePromiseNotifier.UseSingleThreadIoEventLoopwithEpollIoHandlerUseSingleThreadIoEventLoopwithNioIoHandleruse NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.this transport will be removed in the next major version.this transport will be removed in the next major version.this transport will be removed in the next major version.useNioSctpChannel.useNioSctpServerChannel.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.use NIO / EPOLL / KQUEUE transport.this will be remove in the next-major release.this will be remove in the next-major release.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.The UDT transport is no longer maintained and will be removed.UseSnappyFrameDecoderinstead.UseSnappyFrameEncoderinstead.UseClientCookieDecoderorServerCookieDecoderinstead. Decodes an HTTP header value intoCookies. This decoder can decode the HTTP cookie version 0, 1, and 2.HttpRequestreq = ...; String value = req.getHeader("Cookie"); Set<Cookie> cookies =CookieDecoder.decode(value);UseCorsConfigBuilderinstead.Removed without alternatives.UseDefaultCookieinstead.UseDateFormatterinsteadUseHttpHeaderNamesinstead. Standard HTTP header names.UseHttpHeaderValuesinstead. Standard HTTP header values.UseServerCookieEncoderinsteaduseHttp2FrameCodecBuildertogether withHttp2MultiplexHandler.useHttp2FrameCodecBuildertogether withHttp2MultiplexHandler.UseRtspHeaderNamesorRtspHeaderValuesinstead. Standard RTSP header names and values.UseRtspHeaderNamesinstead. Standard RTSP header names.UseRtspHeaderValuesinstead. Standard RTSP header values.UseRtspDecoderinstead.UseRtspEncoderinstead.UseRtspDecoderdirectly insteadUseRtspEncoderdirectly insteadUseRtspDecoderdirectly insteadUseRtspEncoderdirectly insteadThis class has been deprecated with no replacement, because serialization can be a security liabilityThis class has been deprecated with no replacement, because serialization can be a security liabilityThis class has been deprecated with no replacement, because serialization can be a security liabilityThis class has been deprecated with no replacement, because serialization can be a security liabilityThis class has been deprecated with no replacement, because serialization can be a security liabilityThis class has been deprecated with no replacement, because serialization can be a security liabilityUse theCertificateBuilderfromnetty-pkitestinginstead.UsePromiseCombiner(EventExecutor).GenericFutureListenerimplementation which consolidates multipleFutures into one, by listening to individualFutures and producing an aggregated result (success/failure) when allFutures have completed.The behavior of this event executor deviates from the typical Netty execution model and can cause subtle issues as a result. Applications that wish to process messages with greater parallelism, should instead do explicit off-loading to their own thread-pools.UseDomainWildcardMappingBuilderinstead.For removal in Netty 4.2. Please useConcurrentHashMap.newKeySet()insteadFor removal in netty 4.2Instead of extending this class, prefer instead to include aRefCntfield and delegate to that. This approach has better compatibility with Graal Native Image.will be removed in the next major release
-
Deprecated EnumsEnumDescriptionNetty always uses level-triggered mode.use
SocketProtocolFamily.this should never be used by an user!
-
Deprecated Exception ClassesException ClassDescriptionThis class will be removed in the future version.
-
Deprecated Annotation Types
-
Deprecated FieldsFieldDescriptionThere is state for
DefaultMaxMessagesRecvByteBufAllocator.maxMessagesPerRead()which is typically based upon channel type.Netty always uses level-triggered mode and so this method is just a no-op.UseChannelOption.TCP_FASTOPENinstead.UseChannelOption.TCP_FASTOPEN_CONNECTinstead.UseChannelOption.TCP_FASTOPENinstead.useHttpHeaderNames.CONNECTION"keep-alive"useHttpHeaderNames.CONNECTION"proxy-connection"UseEmptyHttpHeaders.INSTANCE.The instance is instantiated here to break the cyclic static initialization between
EmptyHttpHeadersandHttpHeaders. The issue is that if someone accessesEmptyHttpHeaders.INSTANCEbeforeHttpHeaders.EMPTY_HEADERSthenHttpHeaders.EMPTY_HEADERSwill benull.SSLv2 is no longer secure. Consider usingSslProtocols.TLS_v1_2orSslProtocols.TLS_v1_3SSLv2Hello is no longer secure. Consider usingSslProtocols.TLS_v1_2orSslProtocols.TLS_v1_3SSLv3 is no longer secure. Consider usingSslProtocols.TLS_v1_2orSslProtocols.TLS_v1_3TLSv1 is no longer secure. Consider usingSslProtocols.TLS_v1_2orSslProtocols.TLS_v1_3TLSv1.1 is no longer secure. Consider usingSslProtocols.TLS_v1_2orSslProtocols.TLS_v1_3These padding fields will be removed in the future.These padding fields will be removed in the future.These padding fields will be removed in the future.These padding fields will be removed in the future.These padding fields will be removed in the future.These padding fields will be removed in the future.These padding fields will be removed in the future.These padding fields will be removed in the future.
-
Deprecated MethodsMethodDescriptionUse
AbstractBootstrap.config()instead.UseServerBootstrap.config()instead.use the Little Endian accessors, e.g.getShortLE,getIntLEinstead of creating a buffer with swappedendianness.use the Little Endian accessors, e.g.getShortLE,getIntLEinstead of creating a buffer with swappedendianness.Tiny allocations have been merged into small allocations.Tiny allocations have been merged into small allocations.Tiny deallocations have been merged into small deallocations.Tiny sub-pages have been merged into small sub-pages.Tiny sub-pages have been merged into small sub-pages.Tiny caches have been merged into small caches.will be removed Free all cached buffers for the callingThread.will be removed Returnstrueif the callingThreadhas aThreadLocalcache for the allocated buffers.Tiny caches have been merged into small caches.UseByteBuf.asReadOnly().UseUnpooledDirectByteBuf.allocateDirectBuffer(int)instead.UseUnpooledDirectByteBuf.allocateDirectBuffer(int)instead.no use-case for this.no use-case for this.Use {AbstractCoalescingBufferQueue#composeFirst(ByteBufAllocator, ByteBuf, int)}UseMaxMessagesRecvByteBufAllocatorandMaxMessagesRecvByteBufAllocator.maxMessagesPerRead().Returns the maximum number of messages to read per read loop. a
channelRead()event. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.UseMaxMessagesRecvByteBufAllocatorandMaxMessagesRecvByteBufAllocator.maxMessagesPerRead(int).Sets the maximum number of messages to read per read loop. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
if you want to handle this event you should implementChannelInboundHandlerand implement the method there.is part ofChannelInboundHandlerWill be removed in the future.will be removed in the future.Will be removed in the future.io.netty.channel.epoll.AbstractEpollStreamChannel.spliceTo(FileDescriptor, int, int, ChannelPromise) Will be removed in the future.Netty always uses level-triggered mode and so this method is just a no-op.Netty always uses level-triggered mode and so this method is just a no-op.this method is no longer supported. This functionality is internal to this package.UseEventLoopGroup.register(ChannelPromise)instead.UseFileRegion.transferred()instead.This method will be removed in the next major feature release. Deregister allChannels in this group from theirEventLoop. Please note that this operation is asynchronous asChannel.deregister()is.This method will be removed in the next major feature release. Deregister allChannels in this group from theirEventLoopthat are matched by the givenChannelMatcher. Please note that this operation is asynchronous asChannel.deregister()is.UseChannelGroup.writeAndFlush(Object)instead.UseChannelGroup.writeAndFlush(Object, ChannelMatcher)instead.will be removed and is ignored.will be removed and is ignored.No longer supported. No longer supported.useAbstractNioChannel.registration.UseAbstractNioChannel.clearReadPending()if appropriate instead. No longer supported.No longer supported. No longer supported.UseAbstractOioChannel.clearReadPending()if appropriate instead. No longer supported.UseBuffer.allocateDirectBufferWithNativeOrder(int)instead.UseBuffer.allocateDirectBufferWithNativeOrder(int)instead.io.netty.channel.unix.Errors.ioResult(String, int, Errors.NativeIoException, ClosedChannelException) will be removed as it as no effect.Not part of RFC6265Not part of RFC6265CookieUtil is package private, will be removed once old Cookie API is droppedUseCookie.comment()instead.UseCookie.commentUrl()instead.UseCookie.domain()instead.UseCookie.maxAge()instead.UseCookie.name()instead.UseCookie.path()instead.UseCookie.ports()instead.UseCookie.value()instead.UseCookie.version()instead.Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265UseCorsConfigBuilder.allowCredentials()instead.UseCorsConfigBuilder.allowedRequestHeaders(String...)instead.UseCorsConfigBuilder.allowNullOrigin()instead.UseCorsConfigBuilder.build()instead.UseCorsConfigBuilder.disable()instead.UseCorsConfigBuilder.exposeHeaders(String...)instead.UseCorsConfigBuilder.maxAge(long)instead.UseCorsConfigBuilder.noPreflightResponseHeaders()instead.io.netty.handler.codec.http.cors.CorsConfig.Builder.preflightResponseHeader(CharSequence, Object...) UseCorsConfigBuilder.shortCircuit()instead.UseCorsConfig.isShortCircuit()instead.UseCorsConfigBuilder.forAnyOrigin()instead.UseCorsConfigBuilder.forOrigin(String)instead.UseCorsConfigBuilder.forOrigins(String...)instead.UseHttpHeaders.add(CharSequence, Object)instead. Adds a new date header with the specified name and value. The specified value is formatted as defined in RFC2616UseHttpHeaders.add(CharSequence, Object)instead.UseHttpHeaders.add(CharSequence, Object)instead. Adds a new header with the specified name and value. If the specified value is not aString, it is converted into aStringbyObject.toString(), except forDateandCalendarwhich are formatted to the date format defined in RFC2616.UseHttpHeaders.add(CharSequence, Object)instead.UseHttpHeaders.addInt(CharSequence, int)instead. Adds a new integer header with the specified name and value.UseHttpHeaders.add(CharSequence, Iterable)instead.UseHttpHeaders.clear()instead. Removes all headers from the specified message.UseHttpUtil.getContentLength(HttpMessage)instead. Returns the length of the content. Please note that this value is not retrieved fromByteBufHolder.content()but from the"Content-Length"header, and thus they are independent from each other.UseHttpUtil.getContentLength(HttpMessage, long)instead. Returns the length of the content. Please note that this value is not retrieved fromByteBufHolder.content()but from the"Content-Length"header, and thus they are independent from each other.UseHttpHeaders.getTimeMillis(CharSequence)instead. Returns the value of the"Date"header.UseHttpHeaders.getTimeMillis(CharSequence, long)instead. Returns the value of the"Date"header. If there is no such header or the header is not a formatted date, thedefaultValueis returned.UseHttpHeaders.getTimeMillis(CharSequence)instead. Returns the date header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.UseHttpHeaders.getTimeMillis(CharSequence, long)instead. Returns the date header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.UseHttpHeaders.getTimeMillis(CharSequence)instead.UseHttpHeaders.getTimeMillis(CharSequence, long)instead.UseHttpHeaders.get(CharSequence)instead. Returns the header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.UseHttpHeaders.get(CharSequence, String)instead. Returns the header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.UseHttpHeaders.get(CharSequence)instead.UseHttpHeaders.get(CharSequence, String)instead.UseHttpHeaders.get(CharSequence)instead. Returns the value of the"Host"header.UseHttpHeaders.get(CharSequence, String)instead. Returns the value of the"Host"header. If there is no such header, thedefaultValueis returned.UseHttpHeaders.getInt(CharSequence)instead. Returns the integer header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.UseHttpHeaders.getInt(CharSequence, int)instead. Returns the integer header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.UseHttpHeaders.getInt(CharSequence)instead.UseHttpHeaders.getInt(CharSequence, int)instead.UseHttpUtil.is100ContinueExpected(HttpMessage)instead. Returnstrueif and only if the specified message contains the"Expect: 100-continue"header.UseHttpUtil.isContentLengthSet(HttpMessage)instead.UseHttpUtil.isKeepAlive(HttpMessage)instead. Returnstrueif and only if the connection can remain open and thus 'kept alive'. This methods respects the value of the"Connection"header first and then the return value ofHttpVersion.isKeepAliveDefault().UseHttpUtil.isTransferEncodingChunked(HttpMessage)instead. Checks to see if the transfer encoding in a specifiedHttpMessageis chunkedIt is preferred to useHttpHeaders.iteratorCharSequence()unless you needString. IfStringis required then useHttpHeaders.iteratorAsString().UseAsciiStringinstead.Create a new
CharSequencewhich is optimized for reuse asHttpHeadersname or value. So if you have a Header name or value that you want to reuse you should make use of this.UseHttpHeaders.remove(CharSequence)instead. Removes the header with the specified name.UseHttpHeaders.remove(CharSequence)instead.UseHttpUtil.set100ContinueExpected(HttpMessage, boolean)instead. Sets the"Expect: 100-continue"header to the specified message. If there is any existing"Expect"header, they are replaced with the new one.UseHttpUtil.set100ContinueExpected(HttpMessage, boolean)instead. Sets or removes the"Expect: 100-continue"header to / from the specified message. Ifsetistrue, the"Expect: 100-continue"header is set and all other previous"Expect"headers are removed. Otherwise, all"Expect"headers are removed completely.UseHttpUtil.setContentLength(HttpMessage, long)instead.UseHttpHeaders.set(CharSequence, Object)instead. Sets the"Date"header.UseHttpHeaders.set(CharSequence, Iterable)instead. Sets a new date header with the specified name and values. If there is an existing header with the same name, the existing header is removed. The specified values are formatted as defined in RFC2616UseHttpHeaders.set(CharSequence, Object)instead. Sets a new date header with the specified name and value. If there is an existing header with the same name, the existing header is removed. The specified value is formatted as defined in RFC2616UseHttpHeaders.set(CharSequence, Iterable)instead.UseHttpHeaders.set(CharSequence, Object)instead.UseHttpHeaders.set(CharSequence, Iterable)instead. Sets a new header with the specified name and values. If there is an existing header with the same name, the existing header is removed. This getMethod can be represented approximately as the following code:removeHeader(message, name); for (Object v: values) { if (v == null) { break; } addHeader(message, name, v); }UseHttpHeaders.set(CharSequence, Object)instead. Sets a new header with the specified name and value. If there is an existing header with the same name, the existing header is removed. If the specified value is not aString, it is converted into aStringbyObject.toString(), except forDateandCalendarwhich are formatted to the date format defined in RFC2616.UseHttpHeaders.set(CharSequence, Iterable)instead.UseHttpHeaders.set(CharSequence, Object)instead.UseHttpHeaders.set(CharSequence, Object)instead. Sets the"Host"header.UseHttpHeaders.set(CharSequence, Object)instead.UseHttpHeaders.setInt(CharSequence, int)instead. Sets a new integer header with the specified name and value. If there is an existing header with the same name, the existing header is removed.UseHttpHeaders.set(CharSequence, Iterable)instead. Sets a new integer header with the specified name and values. If there is an existing header with the same name, the existing header is removed.UseHttpHeaders.setInt(CharSequence, int)instead.UseHttpHeaders.set(CharSequence, Iterable)instead.UseHttpUtil.setKeepAlive(HttpMessage, boolean)instead. Sets the value of the"Connection"header depending on the protocol version of the specified message. This getMethod sets or removes the"Connection"header depending on what the default keep alive mode of the message's protocol version is, as specified byHttpVersion.isKeepAliveDefault().- If the connection is kept alive by default:
- set to
"close"ifkeepAliveisfalse. - remove otherwise.
- set to
- If the connection is closed by default:
- set to
"keep-alive"ifkeepAliveistrue. - remove otherwise.
- set to
UseHttpMessage.protocolVersion()instead.UseDecoderResultProvider.decoderResult()instead.UseHttpRequest.method()instead.UseHttpRequest.uri()instead.UseHttpResponse.status()instead.UseHttpDataFactory.cleanAllHttpData()instead.UseHttpDataFactory.cleanRequestHttpData(HttpRequest)instead.UseWebSocketChunkedInput.readChunk(ByteBufAllocator). Fetches a chunked data from the stream. Once this method returns the last chunk and thus the stream has reached at its end, any subsequentWebSocketChunkedInput.isEndOfInput()call must returntrue.io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.initialHuffmanDecodeCapacity(int) Huffman decoding no longer depends on having a decode capacity.should not be used directly. UseHttp2StreamChannelBootstrap.open()orHttp2StreamChannelBootstrap.open(Promise)useDefaultHttp3SettingsFrame.settings()and manipulate theHttp3SettingsdirectlyuseDefaultHttp3SettingsFrame.settings()and manipulate theHttp3SettingsdirectlyUse typed accessors viaHttp3SettingsFrame.settings()instead. For example,frame.settings().connectProtocolEnabled().Use typed accessors viaHttp3SettingsFrame.settings()instead. * For example,frame.settings().qpackBlockedStreams().Use typed accessors viaHttp3SettingsFrame.settings()instead. * For example,frame.settings().enableConnectProtocol(true).This method will be removed in future releases.useMqttConnectPayload.passwordInBytes()insteaduseMqttConnectPayload.willMessageInBytes()insteaduseMqttMessageBuilders.PubAckBuilder.packetId(int)insteaduseMqttMessageBuilders.SubAckBuilder.packetId(int)insteadUseMqttPublishVariableHeader.packetId()instead.use topicFilterUseBufferedReader.readLine()instead.UseSocksAddressType.valueOf(byte)instead.UseSocksAuthScheme.valueOf(byte)instead.UseSocksAuthStatus.valueOf(byte)instead.UseSocksCmdStatus.valueOf(byte)instead.UseSocksCmdType.valueOf(byte)instead.Do not use; this method was intended for an internal use only.UseSocksProtocolVersion.valueOf(byte)instead.UseSocksSubnegotiationVersion.valueOf(byte)instead.will be removed.will be removed.Will be removed because hostname validation is always done by aTrustManagerimplementation.This method is kept for API backwards compatibility.this method is considered unsafe as the returned pointer may be released later. Dont use it!this method is considered unsafe as the returned pointer may be released later. Dont use it!use}invalid @link
{@link #sessionContext#stats()Replaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderReplaced bySslContextBuilderUseSslContext.applicationProtocolNegotiator()instead.UseChunkedInput.readChunk(ByteBufAllocator).Fetches a chunked data from the stream. Once this method returns the last chunk and thus the stream has reached at its end, any subsequent
ChunkedInput.isEndOfInput()call must returntrue.Prefer to configure aLoggingDnsQueryLifeCycleObserverFactoryinstead.UseDefaultDnsServerAddressStreamProvider.defaultAddresses().Returns the
DnsServerAddressesthat yields the system DNS server addresses sequentially. If it failed to retrieve the list of the system DNS server addresses from the environment, it will use"8.8.8.8"and"8.8.4.4", the addresses of the Google public DNS servers.This method has the same effect with the following code:
DnsServerAddresses.sequential(DnsServerAddresses.defaultAddressList());
UseDefaultDnsServerAddressStreamProvider.defaultAddressList().Returns the list of the system DNS server addresses. If it failed to retrieve the list of the system DNS server addresses from the environment, it will return
"8.8.8.8"and"8.8.4.4", the addresses of the Google public DNS servers.please consider usingAttribute.getAndSet(Object)(with value ofnull).please consider usingAttribute.set(Object)(with value ofnull).UseAbstractScheduledEventExecutor.ticker()insteadPlease use (or override)AbstractScheduledEventExecutor.ticker()instead. This method delegates toAbstractScheduledEventExecutor.ticker(). Old code may still call this method for compatibility.UseAbstractScheduledEventExecutor.ticker()insteadUse the non-staticAbstractScheduledEventExecutor.ticker()instead.will be removed in the future.Replaced byPromiseCombiner.add(Future).Replaced byPromiseCombiner.addAll(Future[])Please use and overrideSingleThreadEventExecutor.newTaskQueue(int).useDomainNameMappingBuilderto create and fill the mapping insteadUseThreadLocalRandom.current()instead.not used anymore. User Integer.compare() instead. For removal. Compares twointvalues.not used anymore. User Long.compare() instead. For removal. Compare twolongvalues.For removal. Please useRecycler.get()instead.For removal. Please useinstead.invalid reference
Recycler()Use theCleanableDirectBuffer.clean()fromPlatformDependent.allocateDirect(int)instead.please use new ConcurrentHashMapinvalid input: '<'K, V>() directly.please use new ConcurrentHashMapinvalid input: '<'K, V>() directly.please use new ConcurrentHashMapinvalid input: '<'K, V>() directly.please use new ConcurrentHashMapinvalid input: '<'K, V>() directly.please use new ConcurrentHashMapinvalid input: '<'K, V>() directly.please useLongAdderinstead.Use ThreadLocalRandom.current() instead.this may introduce a lot of memory usage so it is generally preferable to manually release objects.this may introduce a lot of memory usage so it is generally preferable to manually release objects.This method will no longer be invoked byResourceLeakDetector.UseResourceLeakDetector.setLevel(Level)instead.UseResourceLeakDetectorFactory.newResourceLeakDetector(Class, int)instead.Returns a new instance of a
ResourceLeakDetectorwith the given resource class. - If the connection is kept alive by default:
-
Deprecated ConstructorsConstructorDescriptionuse
invalid reference
KQueueDatagramChannel(SocketProtocolFamily)UseIovArray(int)instead.UseIovArray(int)instead.UseJdkZlibDecoder(int).UseJZlibDecoder(int).Use the constructor without thesafeInstanceparameter.Use the constructor without thesafeInstanceparameter.Use the constructor without thesafeInstanceparameter.Prefer instead to configuring aHttpHeadersFactoryby callingwithCombiningHeaders(true)onDefaultHttpHeadersFactory.headersFactory().UseCorsConfigBuilderinstead.UseCorsConfigBuilderinstead.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer using theDefaultHttpHeaders()constructor instead, to always have validation enabled.Use theDefaultHttpMessage(HttpVersion, HttpHeadersFactory)constructor instead, ideally using theDefaultHttpHeadersFactory.headersFactory(), or a factory that otherwise has validation enabled.Prefer theDefaultHttpRequest(HttpVersion, HttpMethod, String)constructor instead, to always have header validation enabled.Use theDefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory)constructor instead.Use theDefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory)constructor instead.Prefer theDefaultLastHttpContent(ByteBuf)constructor instead, to always have header validation enabled.Prefer theHttpClientCodec(int, int, int, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.UsePerMessageDeflateClientExtensionHandshaker(int)}.invalid @link
{@link PerMessageDeflateClientExtensionHandshaker#UsePerMessageDeflateServerExtensionHandshaker(int)}.invalid @link
{@link PerMessageDeflateServerExtensionHandshaker#io.netty.handler.codec.http2.CompressorHttp2ConnectionEncoder(Http2ConnectionEncoder, int, int, int) Use QuicChannel.newBootstrap() instead.Use theRtspDecoder(HttpDecoderConfig)constructor instead, or theRtspDecoder(int, int, int)to always enable header validation.Use theSpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Use theSpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)constructor instead.UsePcapWriteHandler.Builderinstead.UsePcapWriteHandler.Builderinstead.useSslContextBuilder}This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by callingFingerprintTrustManagerFactory.builder(String)method.This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by callingFingerprintTrustManagerFactory.builder(String)method.This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by callingFingerprintTrustManagerFactory.builder(String)method.useDomainNameMappingBuilderto create and fill the mapping insteaduseDomainNameMappingBuilderto create and fill the mapping insteadUseCommonsLoggerFactory.INSTANCEinstead.UseJdkLoggerFactory.INSTANCEinstead.UseLog4J2LoggerFactory.INSTANCEinstead.UseLog4JLoggerFactory.INSTANCEinstead.UseSlf4JLoggerFactory.INSTANCEinstead.UseResourceLeakDetector(Class, int).This should not be used directly by users of
ResourceLeakDetector. Please useResourceLeakDetectorFactory.newResourceLeakDetector(Class)orResourceLeakDetectorFactory.newResourceLeakDetector(Class, int, long)
-
Deprecated Enum ConstantsEnum ConstantDescriptionin favor of
WebSocketServerProtocolHandler.HandshakeCompleteclass, it provides extra information about the handshake