org.apache.camel.component.seda
Class SedaEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<Exchange>
      extended by org.apache.camel.component.seda.SedaEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint<Exchange>, BrowsableEndpoint<Exchange>

public class SedaEndpoint
extends DefaultEndpoint<Exchange>
implements BrowsableEndpoint<Exchange>

An implementation of the Queue components for asynchronous SEDA exchanges on a BlockingQueue within a CamelContext

Version:
$Revision: 41278 $

Constructor Summary
SedaEndpoint(String endpointUri, BlockingQueue<Exchange> queue)
           
SedaEndpoint(String endpointUri, Component component, BlockingQueue<Exchange> queue)
           
SedaEndpoint(String uri, SedaComponent component, Map parameters)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 List<Exchange> getExchanges()
          Return the exchanges available on this endpoint
 BlockingQueue<Exchange> getQueue()
           
 boolean isSingleton()
          Returns if the endpoint should be a CamelContext singleton.
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Endpoint
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getContext, getEndpointUri, isLenientProperties, setCamelContext, setContext
 

Constructor Detail

SedaEndpoint

public SedaEndpoint(String endpointUri,
                    Component component,
                    BlockingQueue<Exchange> queue)

SedaEndpoint

public SedaEndpoint(String uri,
                    SedaComponent component,
                    Map parameters)

SedaEndpoint

public SedaEndpoint(String endpointUri,
                    BlockingQueue<Exchange> queue)
Method Detail

createProducer

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

Specified by:
createProducer in interface Endpoint<Exchange>
Returns:
a newly created producer
Throws:
Exception

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

Specified by:
createConsumer in interface Endpoint<Exchange>
Returns:
a newly created consumer
Throws:
Exception

getQueue

public BlockingQueue<Exchange> getQueue()

isSingleton

public boolean isSingleton()
Description copied from interface: Endpoint
Returns if the endpoint should be a CamelContext singleton. If the endpoint is a Singleton, then a single Endpoint instance will be shared by all routes with the same URI. Because the endpoint is shared, it should be treated as an immutable.

Specified by:
isSingleton in interface Endpoint<Exchange>

getExchanges

public List<Exchange> getExchanges()
Description copied from interface: BrowsableEndpoint
Return the exchanges available on this endpoint

Specified by:
getExchanges in interface BrowsableEndpoint<Exchange>
Returns:
the exchanges on this endpoint


Copyright © 2008 IONA Open Source Community. All Rights Reserved.