|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.component.netty.SingleTCPNettyServerBootstrapFactory
public class SingleTCPNettyServerBootstrapFactory
A NettyServerBootstrapFactory
which is used by a single consumer (not shared).
Field Summary | |
---|---|
protected static org.slf4j.Logger |
LOG
|
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
SingleTCPNettyServerBootstrapFactory()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.apache.camel.support.ServiceSupport |
---|
doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.SuspendableService |
---|
isSuspended, resume, suspend |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Field Detail |
---|
protected static final org.slf4j.Logger LOG
Constructor Detail |
---|
public SingleTCPNettyServerBootstrapFactory()
Method Detail |
---|
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 startServerBootstrap()
protected void stopServerBootstrap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |