|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NettyServerBootstrapFactory
Factory for setting up Netty ServerBootstrap
and all
the needed logic for doing that.
ServerBootstrap
which
allows to share the same port for multiple consumers.
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. |
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. |
Methods inherited from interface org.apache.camel.SuspendableService |
---|
isSuspended, resume, suspend |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Method Detail |
---|
void init(org.apache.camel.CamelContext camelContext, NettyServerBootstrapConfiguration configuration, org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactory
.
camelContext
- the CamelContext
for non-shared bootstrap factoryconfiguration
- the bootstrap configurationpipelineFactory
- the pipeline factoryvoid init(ThreadFactory threadFactory, NettyServerBootstrapConfiguration configuration, org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactory
.
threadFactory
- the thread factory to use for shared bootstrap factoryconfiguration
- the bootstrap configurationpipelineFactory
- the pipeline factoryvoid addChannel(org.jboss.netty.channel.Channel channel)
Channel
is opened.
void removeChannel(org.jboss.netty.channel.Channel channel)
Channel
is closed.
void addConsumer(NettyConsumer consumer)
NettyConsumer
is added and uses this bootstrap factory.
void removeConsumer(NettyConsumer consumer)
NettyConsumer
is removed and no longer using this bootstrap factory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |