|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpServerConsumerChannelFactory
Factory for setting up Netty ChannelHandler
bound to a given Netty port.
ServerBootstrap
which
allows to share the same port for multiple consumers.
This factory is needed to ensure we can handle the situations when consumers is added and removing in
a dynamic environment such as OSGi, where Camel applications can be hot-deployed. And we want these
Camel applications to be able to share the same Netty port in a easy way.
Method Summary | |
---|---|
void |
addConsumer(NettyHttpConsumer consumer)
Adds the given consumer. |
int |
consumers()
Number of active consumers |
org.jboss.netty.channel.ChannelHandler |
getChannelHandler()
Gets the ChannelHandler |
int |
getPort()
The port number this consumer channel factory is using. |
void |
init(int port)
Initializes this consumer channel factory with the given port. |
void |
removeConsumer(NettyHttpConsumer consumer)
Removes the given consumer |
Method Detail |
---|
void init(int port)
int getPort()
void addConsumer(NettyHttpConsumer consumer)
void removeConsumer(NettyHttpConsumer consumer)
int consumers()
org.jboss.netty.channel.ChannelHandler getChannelHandler()
ChannelHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |