public class SingleUDPNettyServerBootstrapFactory extends org.apache.camel.support.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 |
---|
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, resume, shutdown, start, stop, suspend
public SingleUDPNettyServerBootstrapFactory()
public void init(org.apache.camel.CamelContext camelContext, NettyServerBootstrapConfiguration configuration, org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactory
NettyServerBootstrapFactory
.init
in interface NettyServerBootstrapFactory
camelContext
- 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)
NettyServerBootstrapFactory
NettyServerBootstrapFactory
.init
in interface NettyServerBootstrapFactory
threadFactory
- the thread factory to use for shared bootstrap factoryconfiguration
- the bootstrap configurationpipelineFactory
- the pipeline factorypublic void addChannel(org.jboss.netty.channel.Channel channel)
NettyServerBootstrapFactory
Channel
is opened.addChannel
in interface NettyServerBootstrapFactory
public void removeChannel(org.jboss.netty.channel.Channel channel)
NettyServerBootstrapFactory
Channel
is closed.removeChannel
in interface NettyServerBootstrapFactory
public void addConsumer(NettyConsumer consumer)
NettyServerBootstrapFactory
NettyConsumer
is added and uses this bootstrap factory.addConsumer
in interface NettyServerBootstrapFactory
public void removeConsumer(NettyConsumer consumer)
NettyServerBootstrapFactory
NettyConsumer
is removed and no longer using this bootstrap factory.removeConsumer
in interface NettyServerBootstrapFactory
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.ServiceSupport
Exception
protected void doResume() throws Exception
doResume
in class org.apache.camel.support.ServiceSupport
Exception
protected void doSuspend() throws Exception
doSuspend
in class org.apache.camel.support.ServiceSupport
Exception
protected void stopServerBootstrap()
Apache Camel