Package org.apache.camel.component.netty
Class ClientInitializerFactory
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
org.apache.camel.component.netty.ClientInitializerFactory
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
DefaultClientInitializerFactory
public abstract class ClientInitializerFactory
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
Factory to create
ChannelPipeline for clients, eg NettyProducer.
Implementators must support creating a new instance of this factory which is associated to the given
NettyProducer using the createPipelineFactory(NettyProducer) 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 ClientInitializerFactorycreatePipelineFactory(NettyProducer producer) Creates a newClientInitializerFactoryusing the givenNettyProducerMethods 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
-
ClientInitializerFactory
public ClientInitializerFactory()
-
-
Method Details
-
createPipelineFactory
Creates a newClientInitializerFactoryusing the givenNettyProducer- Parameters:
producer- the associated producers- Returns:
- the
ClientInitializerFactoryassociated to the given producer.
-