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 ServerInitializerFactory
createPipelineFactory
(NettyConsumer consumer) Creates a newServerInitializerFactory
using the givenNettyConsumer
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved, initChannel
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
ServerInitializerFactory
public ServerInitializerFactory()
-
-
Method Details
-
createPipelineFactory
Creates a newServerInitializerFactory
using the givenNettyConsumer
- Parameters:
consumer
- the associated consumer- Returns:
- the
ServerInitializerFactory
associated to the given consumer.
-