org.apache.camel.component.netty
Class NettyEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.netty.NettyEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, HasId

public class NettyEndpoint
extends DefaultEndpoint


Constructor Summary
NettyEndpoint(String endpointUri, NettyComponent component, NettyConfiguration configuration)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Exchange createExchange(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent)
           
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 NettyConfiguration getConfiguration()
           
 org.jboss.netty.util.Timer getTimer()
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 void setConfiguration(NettyConfiguration configuration)
           
 void setTimer(org.jboss.netty.util.Timer timer)
           
 void start()
          Starts the service
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, stop, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NettyEndpoint

public NettyEndpoint(String endpointUri,
                     NettyComponent component,
                     NettyConfiguration configuration)
Method Detail

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

createExchange

public Exchange createExchange(org.jboss.netty.channel.ChannelHandlerContext ctx,
                               org.jboss.netty.channel.MessageEvent messageEvent)

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

getConfiguration

public NettyConfiguration getConfiguration()

setConfiguration

public void setConfiguration(NettyConfiguration configuration)

setTimer

public void setTimer(org.jboss.netty.util.Timer timer)

getTimer

public org.jboss.netty.util.Timer getTimer()

start

public void start()
           throws Exception
Description copied from interface: Service
Starts the service

Specified by:
start in interface Service
Overrides:
start in class DefaultEndpoint
Throws:
Exception - is thrown if starting failed


Apache CAMEL