org.apache.camel.component.seda
Class SedaEndpoint<E extends Exchange>

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

public class SedaEndpoint<E extends Exchange>
extends DefaultEndpoint<E>

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

Version:
$Revision: 519973 $

Constructor Summary
SedaEndpoint(String endpointUri, Component component, BlockingQueue<E> queue)
           
SedaEndpoint(String uri, SedaComponent<E> component)
           
 
Method Summary
 Consumer<E> createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 E createExchange()
          Create a new exchange for communicating with this endpoint
 Producer<E> createProducer()
          Creates a new producer which is used send messages into the endpoint
 BlockingQueue<E> getQueue()
           
 boolean isSingleton()
          Returns if the endpoint should be a CamelContext singleton.
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SedaEndpoint

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

SedaEndpoint

public SedaEndpoint(String uri,
                    SedaComponent<E> component)
Method Detail

createProducer

public Producer<E> 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

createConsumer

public Consumer<E> 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

Returns:
a newly created consumer
Throws:
Exception

createExchange

public E createExchange()
Description copied from interface: Endpoint
Create a new exchange for communicating with this endpoint


getQueue

public BlockingQueue<E> 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.



Copyright © 2007 Apache Software Foundation. All Rights Reserved.