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:
-
ChannelInitializer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ClientInitializerFactory
createPipelineFactory
(NettyProducer producer) Creates a newClientInitializerFactory
using the givenNettyProducer
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
-
ClientInitializerFactory
public ClientInitializerFactory()
-
-
Method Details
-
createPipelineFactory
Creates a newClientInitializerFactory
using the givenNettyProducer
- Parameters:
producer
- the associated producers- Returns:
- the
ClientInitializerFactory
associated to the given producer.
-