Uses of Interface
io.netty5.channel.ChannelHandler
-
Packages that use ChannelHandler Package Description io.netty5.bootstrap The helper classes with fluent API which enable an easy implementation of typical client side and server side channel initialization.io.netty5.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty5.channel.embedded A virtualChannelthat helps wrapping a series of handlers to unit test the handlers or use them in non-I/O context.io.netty5.channel.internal Internal utilities for channel implementations.io.netty5.handler.address Package to dynamically replace local / remoteSocketAddress.io.netty5.handler.codec Extensible decoder and its common implementations which deal with the packet fragmentation and reassembly issue found in a stream-based transport such as TCP/IP.io.netty5.handler.codec.base64 io.netty5.handler.codec.bytes Encoder and decoder which transform an array of bytes into aio.netty5.buffer.ByteBufand vice versa.io.netty5.handler.codec.compression io.netty5.handler.codec.dns DNS codec.io.netty5.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty5.handler.codec.http.cors This package contains Cross Origin Resource Sharing (CORS) related classes.io.netty5.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty5.handler.codec.http.websocketx.extensions Encoder, decoder, handshakers to handle WebSocket Extensions.io.netty5.handler.codec.http.websocketx.extensions.compression Encoder, decoder, handshakers to handle most common WebSocket Compression Extensions.io.netty5.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty5.handler.codec.rtsp An RTSP extension based on the HTTP codec.io.netty5.handler.codec.string Encoder and decoder which transform aStringinto aio.netty5.buffer.ByteBufand vice versa.io.netty5.handler.flow Package to control the flow of messages.io.netty5.handler.flush Package to control flush behavior.io.netty5.handler.ipfilter Package to filter IP addresses (allow/deny).io.netty5.handler.logging Logs the I/O events for debugging purpose.io.netty5.handler.ssl io.netty5.handler.ssl.ocsp OCSP stapling, formally known as the TLS Certificate Status Request extension, is an alternative approach to the Online Certificate Status Protocol (OCSP) for checking the revocation status of X.509 digital certificates.io.netty5.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError.io.netty5.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer.io.netty5.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics. -
-
Uses of ChannelHandler in io.netty5.bootstrap
Methods in io.netty5.bootstrap that return ChannelHandler Modifier and Type Method Description ChannelHandlerServerBootstrapConfig. childHandler()Returns the configuredChannelHandlerbe used for the child channels ornullif non is configured yet.ChannelHandlerAbstractBootstrapConfig. handler()Returns the configuredChannelHandlerornullif non is configured yet.Methods in io.netty5.bootstrap with parameters of type ChannelHandler Modifier and Type Method Description ServerBootstrapServerBootstrap. childHandler(ChannelHandler childHandler)Set theChannelHandlerwhich is used to serve the request for theChannel's.BAbstractBootstrap. handler(ChannelHandler handler)theChannelHandlerto use for serving the requests. -
Uses of ChannelHandler in io.netty5.channel
Classes in io.netty5.channel with type parameters of type ChannelHandler Modifier and Type Class Description classCombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler>Combines the inbound handling of oneChannelHandlerwith the outbound handling of anotherChannelHandler.classCombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler>Combines the inbound handling of oneChannelHandlerwith the outbound handling of anotherChannelHandler.Classes in io.netty5.channel that implement ChannelHandler Modifier and Type Class Description classChannelHandlerAdapterSkeleton implementation of aChannelHandler.classChannelInitializer<C extends Channel>A specialChannelHandlerwhich offers an easy way to initialize aChannelonce it was registered to itsEventLoop.classCombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler>Combines the inbound handling of oneChannelHandlerwith the outbound handling of anotherChannelHandler.classSimpleChannelInboundHandler<I>ChannelHandlerwhich allows to explicit only handle a specific type of messages.classSimpleUserEventChannelHandler<I>ChannelHandlerwhich allows to conveniently only handle a specific type of user events.Methods in io.netty5.channel with type parameters of type ChannelHandler Modifier and Type Method Description <T extends ChannelHandler>
TChannelPipeline. get(Class<T> handlerType)Returns theChannelHandlerof the specified type in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. get(Class<T> handlerType)default <T extends ChannelHandler>
TChannelPipeline. remove(Class<T> handlerType)Removes theChannelHandlerof the specified type from this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. remove(Class<T> handlerType)<T extends ChannelHandler>
TChannelPipeline. removeIfExists(ChannelHandler handler)Removes the specifiedChannelHandlerfrom this pipeline if it exists<T extends ChannelHandler>
TChannelPipeline. removeIfExists(Class<T> handlerType)Removes theChannelHandlerof the specified type from this pipeline if it exists.<T extends ChannelHandler>
TChannelPipeline. removeIfExists(String name)Removes theChannelHandlerwith the specified name from this pipeline if it exists.<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(ChannelHandler handler)<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(Class<T> handlerType)<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(String name)<T extends ChannelHandler>
TChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified type with a new handler in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)Methods in io.netty5.channel that return ChannelHandler Modifier and Type Method Description default ChannelHandlerChannelPipeline. first()Returns the firstChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. first()ChannelHandlerChannelPipeline. get(String name)Returns theChannelHandlerwith the specified name in this pipeline.ChannelHandlerDefaultChannelPipeline. get(String name)ChannelHandlerChannelHandlerContext. handler()TheChannelHandlerthat is bound thisChannelHandlerContext.default ChannelHandlerChannelPipeline. last()Returns the lastChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. last()default ChannelHandlerChannelPipeline. remove(String name)Removes theChannelHandlerwith the specified name from this pipeline.ChannelHandlerDefaultChannelPipeline. remove(String name)ChannelHandlerChannelPipeline. removeFirst()Removes the firstChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. removeFirst()ChannelHandlerChannelPipeline. removeLast()Removes the lastChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. removeLast()ChannelHandlerChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified name with a new handler in this pipeline.ChannelHandlerDefaultChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Methods in io.netty5.channel that return types with arguments of type ChannelHandler Modifier and Type Method Description Iterator<Map.Entry<String,ChannelHandler>>DefaultChannelPipeline. iterator()Map<String,ChannelHandler>ChannelPipeline. toMap()Converts this pipeline into an orderedMapwhose keys are handler names and whose values are handlers.Map<String,ChannelHandler>DefaultChannelPipeline. toMap()Methods in io.netty5.channel with parameters of type ChannelHandler Modifier and Type Method Description ChannelPipelineChannelPipeline. addAfter(String baseName, String name, ChannelHandler handler)Inserts aChannelHandlerafter an existing handler of this pipeline.ChannelPipelineDefaultChannelPipeline. addAfter(String baseName, String name, ChannelHandler handler)ChannelPipelineChannelPipeline. addBefore(String baseName, String name, ChannelHandler handler)Inserts aChannelHandlerbefore an existing handler of this pipeline.ChannelPipelineDefaultChannelPipeline. addBefore(String baseName, String name, ChannelHandler handler)ChannelPipelineChannelPipeline. addFirst(ChannelHandler... handlers)InsertsChannelHandlers at the first position of this pipeline.ChannelPipelineChannelPipeline. addFirst(String name, ChannelHandler handler)Inserts aChannelHandlerat the first position of this pipeline.ChannelPipelineDefaultChannelPipeline. addFirst(ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addFirst(ChannelHandler... handlers)ChannelPipelineDefaultChannelPipeline. addFirst(String name, ChannelHandler handler)ChannelPipelineChannelPipeline. addLast(ChannelHandler... handlers)InsertsChannelHandlers at the last position of this pipeline.ChannelPipelineChannelPipeline. addLast(String name, ChannelHandler handler)Appends aChannelHandlerat the last position of this pipeline.ChannelPipelineDefaultChannelPipeline. addLast(ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addLast(ChannelHandler... handlers)ChannelPipelineDefaultChannelPipeline. addLast(String name, ChannelHandler handler)ChannelHandlerContextChannelPipeline. context(ChannelHandler handler)Returns the context object of the specifiedChannelHandlerin this pipeline.ChannelHandlerContextDefaultChannelPipeline. context(ChannelHandler handler)default ChannelPipelineChannelPipeline. remove(ChannelHandler handler)Removes the specifiedChannelHandlerfrom this pipeline.ChannelPipelineDefaultChannelPipeline. remove(ChannelHandler handler)<T extends ChannelHandler>
TChannelPipeline. removeIfExists(ChannelHandler handler)Removes the specifiedChannelHandlerfrom this pipeline if it exists<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(ChannelHandler handler)ChannelPipelineChannelPipeline. replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler)Replaces the specifiedChannelHandlerwith a new handler in this pipeline.<T extends ChannelHandler>
TChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified type with a new handler in this pipeline.ChannelHandlerChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified name with a new handler in this pipeline.ChannelPipelineDefaultChannelPipeline. replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler)<T extends ChannelHandler>
TDefaultChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)ChannelHandlerDefaultChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Method parameters in io.netty5.channel with type arguments of type ChannelHandler Modifier and Type Method Description ChannelHandlerContextChannelPipeline. context(Class<? extends ChannelHandler> handlerType)Returns the context object of theChannelHandlerof the specified type in this pipeline.ChannelHandlerContextDefaultChannelPipeline. context(Class<? extends ChannelHandler> handlerType) -
Uses of ChannelHandler in io.netty5.channel.embedded
Constructors in io.netty5.channel.embedded with parameters of type ChannelHandler Constructor Description EmbeddedChannel(boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelHandler... handlers)Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(Channel parent, ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. -
Uses of ChannelHandler in io.netty5.channel.internal
Methods in io.netty5.channel.internal that return ChannelHandler Modifier and Type Method Description ChannelHandlerDelegatingChannelHandlerContext. handler() -
Uses of ChannelHandler in io.netty5.handler.address
Classes in io.netty5.handler.address that implement ChannelHandler Modifier and Type Class Description classDynamicAddressConnectHandlerChannelHandlerimplementation which allows to dynamically replace the usedremoteAddressand / orlocalAddresswhen making a connection attempt.classResolveAddressHandlerChannelHandlerwhich will resolve theSocketAddressthat is passed toResolveAddressHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress)if it is not already resolved and theAddressResolversupports the type ofSocketAddress. -
Uses of ChannelHandler in io.netty5.handler.codec
Classes in io.netty5.handler.codec that implement ChannelHandler Modifier and Type Class Description classByteToMessageCodec<I>A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.classByteToMessageDecoderChannelHandlerwhich decodes bytes in a stream-like fashion from oneBufferto an other Message type.classDatagramPacketDecoderA decoder that decodes the content of the receivedDatagramPacketusing the specifiedBufferdecoder.classDatagramPacketEncoder<M>An encoder that encodes the content inAddressedEnvelopetoDatagramPacketusing the specified message encoder.classDelimiterBasedFrameDecoderA decoder that splits the receivedBuffers by one or more delimiters.classFixedLengthFrameDecoderA decoder that splits the receivedBuffers by the fixed number of bytes.classLengthFieldBasedFrameDecoderA decoder that splits the receivedBuffers dynamically by the value of the length field in the message.classLengthFieldPrependerAn encoder that prepends the length of the message.classLineBasedFrameDecoderA decoder that splits the receivedBuffers on line endings.classMessageAggregator<I,S,C extends AutoCloseable,A extends AutoCloseable>An abstractChannelHandlerthat aggregates a series of message objects into a single aggregated message.classMessageToByteEncoder<I>ChannelHandlerwhich encodes message in a stream-like fashion from one message to aBuffer.classMessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>A Codec for on-the-fly encoding/decoding of message.classMessageToMessageDecoder<I>ChannelHandlerwhich decodes from one message to another message.classMessageToMessageEncoder<I>ChannelHandlerwhich encodes from one message to another message For example here is an implementation which decodes anIntegerto anString. -
Uses of ChannelHandler in io.netty5.handler.codec.base64
Classes in io.netty5.handler.codec.base64 that implement ChannelHandler Modifier and Type Class Description classBase64DecoderclassBase64Encoder -
Uses of ChannelHandler in io.netty5.handler.codec.bytes
Classes in io.netty5.handler.codec.bytes that implement ChannelHandler Modifier and Type Class Description classByteArrayDecoderDecodes a receivedBufferinto an array of bytes.classByteArrayEncoderEncodes the requested array of bytes into aBuffer. -
Uses of ChannelHandler in io.netty5.handler.codec.compression
Classes in io.netty5.handler.codec.compression that implement ChannelHandler Modifier and Type Class Description classCompressionHandlerclassDecompressionHandlerMethods in io.netty5.handler.codec.compression that return ChannelHandler Modifier and Type Method Description static ChannelHandlerZlibCodecFactory. newZlibDecoder()static ChannelHandlerZlibCodecFactory. newZlibDecoder(byte[] dictionary)static ChannelHandlerZlibCodecFactory. newZlibDecoder(ZlibWrapper wrapper)static ChannelHandlerZlibCodecFactory. newZlibEncoder(byte[] dictionary)static ChannelHandlerZlibCodecFactory. newZlibEncoder(int compressionLevel)static ChannelHandlerZlibCodecFactory. newZlibEncoder(int compressionLevel, byte[] dictionary)static ChannelHandlerZlibCodecFactory. newZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary)static ChannelHandlerZlibCodecFactory. newZlibEncoder(ZlibWrapper wrapper)static ChannelHandlerZlibCodecFactory. newZlibEncoder(ZlibWrapper wrapper, int compressionLevel)static ChannelHandlerZlibCodecFactory. newZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel) -
Uses of ChannelHandler in io.netty5.handler.codec.dns
Classes in io.netty5.handler.codec.dns that implement ChannelHandler Modifier and Type Class Description classDatagramDnsQueryDecoderDecodes aDatagramPacketinto aDatagramDnsQuery.classDatagramDnsQueryEncoderclassDatagramDnsResponseDecoderDecodes aDatagramPacketinto aDatagramDnsResponse.classDatagramDnsResponseEncoderclassTcpDnsQueryDecoderclassTcpDnsQueryEncoderclassTcpDnsResponseDecoderclassTcpDnsResponseEncoder -
Uses of ChannelHandler in io.netty5.handler.codec.http
Classes in io.netty5.handler.codec.http that implement ChannelHandler Modifier and Type Class Description classHttpClientCodecA combination ofHttpRequestEncoderandHttpResponseDecoderwhich enables easier client side HTTP implementation.classHttpClientUpgradeHandler<C extends HttpContent<C>>Client-side handler for handling an HTTP upgrade handshake to another protocol.classHttpContentCompressorCompresses anHttpMessageand anHttpContentingzipordeflateencoding while respecting the"Accept-Encoding"header.classHttpContentDecoderDecodes the content of the receivedHttpRequestandHttpContent.classHttpContentDecompressorclassHttpContentEncoderEncodes the content of the outboundHttpResponseandHttpContent.classHttpObjectAggregator<C extends HttpContent<C>>AChannelHandlerthat aggregates anHttpMessageand its followingHttpContents into a singleFullHttpRequestorFullHttpResponse(depending on if it used to handle requests or responses) with no followingHttpContents.classHttpObjectDecoderclassHttpObjectEncoder<H extends HttpMessage>classHttpRequestDecoderclassHttpRequestEncoderclassHttpResponseDecoderclassHttpResponseEncoderclassHttpServerCodecA combination ofHttpRequestDecoderandHttpResponseEncoderwhich enables easier server side HTTP implementation.classHttpServerExpectContinueHandlerclassHttpServerKeepAliveHandlerHttpServerKeepAliveHandler helps close persistent connections when appropriate.classHttpServerUpgradeHandler<C extends HttpContent<C>>A server-side handler that receives HTTP requests and optionally performs a protocol switch if the requested protocol is supported. -
Uses of ChannelHandler in io.netty5.handler.codec.http.cors
Classes in io.netty5.handler.codec.http.cors that implement ChannelHandler Modifier and Type Class Description classCorsHandlerHandles Cross Origin Resource Sharing (CORS) requests. -
Uses of ChannelHandler in io.netty5.handler.codec.http.websocketx
Subinterfaces of ChannelHandler in io.netty5.handler.codec.http.websocketx Modifier and Type Interface Description interfaceWebSocketFrameDecoderMarker interface which all WebSocketFrame decoders need to implement.interfaceWebSocketFrameEncoderMarker interface which all WebSocketFrame encoders need to implement.Classes in io.netty5.handler.codec.http.websocketx that implement ChannelHandler Modifier and Type Class Description classUtf8FrameValidatorclassWebSocket13FrameDecoderDecodes a web socket frame from wire protocol version 13 format.classWebSocket13FrameEncoderEncodes a web socket frame into wire protocol version 13 format.classWebSocketClientProtocolHandlerThis handler does all the heavy lifting for you to run a websocket client.classWebSocketFrameAggregatorHandler that aggregate fragmented WebSocketFrame's.classWebSocketServerProtocolHandlerThis handler does all the heavy lifting for you to run a websocket server. -
Uses of ChannelHandler in io.netty5.handler.codec.http.websocketx.extensions
Classes in io.netty5.handler.codec.http.websocketx.extensions that implement ChannelHandler Modifier and Type Class Description classWebSocketClientExtensionHandlerThis handler negotiates and initializes the WebSocket Extensions.classWebSocketExtensionDecoderConvenient class for io.netty5.handler.codec.http.websocketx.extensions.WebSocketExtension decoder.classWebSocketExtensionEncoderConvenient class for io.netty5.handler.codec.http.websocketx.extensions.WebSocketExtension encoder.classWebSocketServerExtensionHandlerThis handler negotiates and initializes the WebSocket Extensions. -
Uses of ChannelHandler in io.netty5.handler.codec.http.websocketx.extensions.compression
Classes in io.netty5.handler.codec.http.websocketx.extensions.compression that implement ChannelHandler Modifier and Type Class Description classWebSocketClientCompressionHandlerExtends io.netty5.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler to handle the most common WebSocket Compression Extensions.classWebSocketServerCompressionHandlerExtends io.netty5.handler.codec.http.websocketx.extensions.compression.WebSocketServerExtensionHandler to handle the most common WebSocket Compression Extensions. -
Uses of ChannelHandler in io.netty5.handler.codec.http2
Classes in io.netty5.handler.codec.http2 that implement ChannelHandler Modifier and Type Class Description classCleartextHttp2ServerUpgradeHandlerPerforming clear-text upgrade, by h2c HTTP upgrade or Prior Knowledge.classHttp2ChannelDuplexHandlerAChannelHandlerproviding additional functionality for HTTP/2.classHttp2ConnectionHandlerProvides the default implementation for processing inbound frame events and delegates to aHttp2FrameListenerclassHttp2FrameCodecThis API is very immature. The Http2Connection-based API is currently preferred over this API.classHttp2MultiplexHandlerAn HTTP/2 handler that creates child channels for each stream.classHttp2StreamFrameToHttpObjectCodecThis handler converts fromHttp2StreamFrametoHttpObject, and back.classHttpToHttp2ConnectionHandlerTranslates HTTP/1.x object writes into HTTP/2 frames.classInboundHttpToHttp2AdapterTranslates HTTP/1.x object reads into HTTP/2 frames.Methods in io.netty5.handler.codec.http2 with parameters of type ChannelHandler Modifier and Type Method Description Http2StreamChannelBootstrapHttp2StreamChannelBootstrap. handler(ChannelHandler handler)theChannelHandlerto use for serving the requests.Constructors in io.netty5.handler.codec.http2 with parameters of type ChannelHandler Constructor Description CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec, HttpServerUpgradeHandler<?> httpServerUpgradeHandler, ChannelHandler http2ServerHandler)Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP upgrade or prior knowledgeHttp2ClientUpgradeCodec(Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler)Http2ClientUpgradeCodec(String handlerName, Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler)Http2MultiplexHandler(ChannelHandler inboundStreamHandler)Creates a new instanceHttp2MultiplexHandler(ChannelHandler inboundStreamHandler, ChannelHandler upgradeStreamHandler)Creates a new instanceHttp2ServerUpgradeCodec(Http2FrameCodec http2Codec, ChannelHandler... handlers)Creates the codec using a default name for the connection handler when adding to the pipeline. -
Uses of ChannelHandler in io.netty5.handler.codec.rtsp
Classes in io.netty5.handler.codec.rtsp that implement ChannelHandler Modifier and Type Class Description classRtspDecoderDecodesio.netty5.buffer.ByteBufs into RTSP messages represented inHttpMessages.classRtspEncoder -
Uses of ChannelHandler in io.netty5.handler.codec.string
Classes in io.netty5.handler.codec.string that implement ChannelHandler Modifier and Type Class Description classLineEncoderclassStringDecoderclassStringEncoder -
Uses of ChannelHandler in io.netty5.handler.flow
Classes in io.netty5.handler.flow that implement ChannelHandler Modifier and Type Class Description classFlowControlHandlerTheFlowControlHandlerensures that only one message perread()is sent downstream. -
Uses of ChannelHandler in io.netty5.handler.flush
Classes in io.netty5.handler.flush that implement ChannelHandler Modifier and Type Class Description classFlushConsolidationHandlerChannelHandlerwhich consolidatesChannel.flush()/ChannelHandlerContext.flush()operations (which also includesChannel.writeAndFlush(Object)andChannelOutboundInvoker.writeAndFlush(Object). -
Uses of ChannelHandler in io.netty5.handler.ipfilter
Classes in io.netty5.handler.ipfilter that implement ChannelHandler Modifier and Type Class Description classAbstractRemoteAddressFilter<T extends SocketAddress>This class provides the functionality to either accept or reject newChannels based on their IP address.classIpSubnetFilterThis class allows one to filter newChannels based on theIpSubnetFilters passed to its constructor.classRuleBasedIpFilterThis class allows one to filter newChannels based on theIpFilterRules passed to its constructor.classUniqueIpFilterThis class allows one to ensure that at all times for every IP address there is at most oneChannelconnected to the server. -
Uses of ChannelHandler in io.netty5.handler.logging
Classes in io.netty5.handler.logging that implement ChannelHandler Modifier and Type Class Description classLoggingHandlerAChannelHandlerthat logs all events using a logging framework. -
Uses of ChannelHandler in io.netty5.handler.ssl
Classes in io.netty5.handler.ssl that implement ChannelHandler Modifier and Type Class Description classAbstractSniHandler<T>Enables SNI (Server Name Indication) extension for server side SSL.classApplicationProtocolNegotiationHandlerConfigures aChannelPipelinedepending on the application-level protocol negotiation result ofSslHandler.classOptionalSslHandlerOptionalSslHandleris a utility decoder to support both SSL and non-SSL handlers based on the first message received.classSniHandlerEnables SNI (Server Name Indication) extension for server side SSL.classSslClientHelloHandler<T>ByteToMessageDecoderwhich allows to be notified once a fullClientHellowas received.classSslHandlerclassSslMasterKeyHandlerTheSslMasterKeyHandleris a channel-handler you can include in your pipeline to consume the master key & session identifier for a TLS session.Methods in io.netty5.handler.ssl that return ChannelHandler Modifier and Type Method Description protected ChannelHandlerOptionalSslHandler. newNonSslHandler(ChannelHandlerContext context)Override to configure the ChannelHandler. -
Uses of ChannelHandler in io.netty5.handler.ssl.ocsp
Classes in io.netty5.handler.ssl.ocsp that implement ChannelHandler Modifier and Type Class Description classOcspClientHandlerA handler for SSL clients to handle and act upon stapled OCSP responses. -
Uses of ChannelHandler in io.netty5.handler.stream
Classes in io.netty5.handler.stream that implement ChannelHandler Modifier and Type Class Description classChunkedWriteHandlerAChannelHandlerthat adds support for writing a large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError. -
Uses of ChannelHandler in io.netty5.handler.timeout
Classes in io.netty5.handler.timeout that implement ChannelHandler Modifier and Type Class Description classIdleStateHandlerTriggers anIdleStateEventwhen aChannelhas not performed read, write, or both operation for a while.classReadTimeoutHandlerRaises aReadTimeoutExceptionwhen no data was read within a certain period of time.classWriteTimeoutHandlerRaises aWriteTimeoutExceptionwhen a write operation cannot finish in a certain period of time. -
Uses of ChannelHandler in io.netty5.handler.traffic
Classes in io.netty5.handler.traffic that implement ChannelHandler Modifier and Type Class Description classAbstractTrafficShapingHandlerAbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler) or per session bandwidth (seeChannelTrafficShapingHandler), as traffic shaping.classChannelTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for channel traffic shaping, that is to say a per channel limitation of the bandwidth.classGlobalChannelTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for global and per channel traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels and a per channel limitation of the bandwidth.
This version shall not be in the same pipeline than other TrafficShapingHandler.
The general use should be as follow:
Create your unique GlobalChannelTrafficShapingHandler like:
GlobalChannelTrafficShapingHandler myHandler = new GlobalChannelTrafficShapingHandler(executor);
The executor could be the underlying IO worker pool
pipeline.addLast(myHandler);
Note that this handler has a Pipeline Coverage of "all" which means only one such handler must be created and shared among all channels as the counter must be shared among all channels.
Other arguments can be passed like write or read limitation (in bytes/s where 0 means no limitation) or the check interval (in millisecond) that represents the delay between two computations of the bandwidth and so the call back of the doAccounting method (0 means no accounting at all).
Note that as this is a fusion of both Global and Channel Traffic Shaping, limits are in 2 sets, respectively Global and Channel.
A value of 0 means no accounting for checkInterval.classGlobalTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.
-