public class ClientModeTCPNettyServerBootstrapFactory extends org.apache.camel.support.service.ServiceSupport implements NettyServerBootstrapFactory
NettyServerBootstrapFactory which is used by a single consumer (not shared).| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ClientModeTCPNettyServerBootstrapFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(io.netty.channel.Channel channel)
When a new
Channel is opened. |
void |
addConsumer(NettyConsumer consumer)
When a
NettyConsumer is added and uses this bootstrap factory. |
protected void |
doReconnectIfNeeded() |
protected void |
doStart() |
protected void |
doStop() |
void |
init(org.apache.camel.CamelContext camelContext,
NettyServerBootstrapConfiguration configuration,
io.netty.channel.ChannelInitializer<io.netty.channel.Channel> pipelineFactory)
Initializes this non-shared
NettyServerBootstrapFactory. |
void |
init(ThreadFactory threadFactory,
NettyServerBootstrapConfiguration configuration,
io.netty.channel.ChannelInitializer<io.netty.channel.Channel> pipelineFactory)
Initializes this shared
NettyServerBootstrapFactory. |
protected io.netty.channel.Channel |
openChannel(io.netty.channel.ChannelFuture channelFuture) |
void |
removeChannel(io.netty.channel.Channel channel)
When a
Channel is closed. |
void |
removeConsumer(NettyConsumer consumer)
When a
NettyConsumer is removed and no longer using this bootstrap factory. |
protected void |
startServerBootstrap() |
protected void |
stopServerBootstrap() |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ClientModeTCPNettyServerBootstrapFactory()
public void init(org.apache.camel.CamelContext camelContext,
NettyServerBootstrapConfiguration configuration,
io.netty.channel.ChannelInitializer<io.netty.channel.Channel> pipelineFactory)
NettyServerBootstrapFactoryNettyServerBootstrapFactory.init in interface NettyServerBootstrapFactorycamelContext - the CamelContext for non-shared bootstrap factoryconfiguration - the bootstrap configurationpipelineFactory - the channel initializer which set up the channel handler pipelinepublic void init(ThreadFactory threadFactory, NettyServerBootstrapConfiguration configuration, io.netty.channel.ChannelInitializer<io.netty.channel.Channel> pipelineFactory)
NettyServerBootstrapFactoryNettyServerBootstrapFactory.init in interface NettyServerBootstrapFactorythreadFactory - the thread factory to use for shared bootstrap factoryconfiguration - the bootstrap configurationpipelineFactory - the channel initializer which set up the channel handler pipelinepublic void addChannel(io.netty.channel.Channel channel)
NettyServerBootstrapFactoryChannel is opened.addChannel in interface NettyServerBootstrapFactorypublic void removeChannel(io.netty.channel.Channel channel)
NettyServerBootstrapFactoryChannel is closed.removeChannel in interface NettyServerBootstrapFactorypublic void addConsumer(NettyConsumer consumer)
NettyServerBootstrapFactoryNettyConsumer is added and uses this bootstrap factory.addConsumer in interface NettyServerBootstrapFactorypublic void removeConsumer(NettyConsumer consumer)
NettyServerBootstrapFactoryNettyConsumer is removed and no longer using this bootstrap factory.removeConsumer in interface NettyServerBootstrapFactoryprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.ServiceSupportExceptionprotected void stopServerBootstrap()
Apache Camel