Class StandardChannelInitializer<T extends io.netty.channel.Channel>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<T>
org.apache.nifi.event.transport.netty.channel.StandardChannelInitializer<T>
- Type Parameters:
T- Channel Type
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
ClientSslStandardChannelInitializer,ServerSslHandlerChannelInitializer
public class StandardChannelInitializer<T extends io.netty.channel.Channel>
extends io.netty.channel.ChannelInitializer<T>
Standard Channel Initializer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStandardChannelInitializer(Supplier<List<io.netty.channel.ChannelHandler>> handlerSupplier) Standard Channel Initializer with handlers -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitChannel(io.netty.channel.Channel channel) voidsetIdleTimeout(Duration idleTimeout) Set the idle timeout period for channel connections, monitoring both read and write timesvoidsetWriteTimeout(Duration writeTimeout) Set Timeout for Write operationsMethods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
handlerSupplier
-
writeTimeout
-
idleTimeout
-
-
Constructor Details
-
StandardChannelInitializer
Standard Channel Initializer with handlers- Parameters:
handlerSupplier- Channel Handler Supplier
-
-
Method Details
-
setWriteTimeout
Set Timeout for Write operations- Parameters:
writeTimeout- Write Timeout
-
setIdleTimeout
Set the idle timeout period for channel connections, monitoring both read and write times -
initChannel
protected void initChannel(io.netty.channel.Channel channel) - Specified by:
initChannelin classio.netty.channel.ChannelInitializer<T extends io.netty.channel.Channel>
-