public class SingleUDPNettyServerBootstrapFactory extends org.apache.camel.support.ServiceSupport implements NettyServerBootstrapFactory, org.apache.camel.Suspendable
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 |
|---|
SingleUDPNettyServerBootstrapFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(org.jboss.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 |
doResume() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
doSuspend() |
void |
init(org.apache.camel.CamelContext camelContext,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
Initializes this non-shared
NettyServerBootstrapFactory. |
void |
init(ThreadFactory threadFactory,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
Initializes this shared
NettyServerBootstrapFactory. |
void |
removeChannel(org.jboss.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() |
doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic SingleUDPNettyServerBootstrapFactory()
public void init(org.apache.camel.CamelContext camelContext,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactoryNettyServerBootstrapFactory.init in interface NettyServerBootstrapFactorycamelContext - the CamelContext for non-shared bootstrap factoryconfiguration - the bootstrap configurationpipelineFactory - the pipeline factorypublic void init(ThreadFactory threadFactory, NettyServerBootstrapConfiguration configuration, org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactoryNettyServerBootstrapFactory.init in interface NettyServerBootstrapFactorythreadFactory - the thread factory to use for shared bootstrap factoryconfiguration - the bootstrap configurationpipelineFactory - the pipeline factorypublic void addChannel(org.jboss.netty.channel.Channel channel)
NettyServerBootstrapFactoryChannel is opened.addChannel in interface NettyServerBootstrapFactorypublic void removeChannel(org.jboss.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.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportExceptionprotected void doResume()
throws Exception
doResume in class org.apache.camel.support.ServiceSupportExceptionprotected void doSuspend()
throws Exception
doSuspend in class org.apache.camel.support.ServiceSupportExceptionprotected void stopServerBootstrap()
Apache Camel