Package org.apache.camel.component.netty
Class ServerInitializerFactory
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
org.apache.camel.component.netty.ServerInitializerFactory
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
DefaultServerInitializerFactory
public abstract class ServerInitializerFactory
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
Factory to create
ChannelPipeline for servers, eg NettyConsumer.
Implementators must support creating a new instance of this factory which is associated to the given
NettyConsumer using the createPipelineFactory(NettyConsumer) method.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ServerInitializerFactorycreatePipelineFactory(NettyConsumer consumer) Creates a newServerInitializerFactoryusing the givenNettyConsumerMethods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved, initChannelMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
ServerInitializerFactory
public ServerInitializerFactory()
-
-
Method Details
-
createPipelineFactory
Creates a newServerInitializerFactoryusing the givenNettyConsumer- Parameters:
consumer- the associated consumer- Returns:
- the
ServerInitializerFactoryassociated to the given consumer.
-