org.apache.camel.component.list
Class ListEndpoint

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

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

An endpoint which maintains a List of Exchange instances which can be useful for tooling, debugging and visualising routes.

Version:
$Revision: 41832 $

Constructor Summary
ListEndpoint(String endpointUri)
           
ListEndpoint(String uri, CamelContext camelContext)
           
ListEndpoint(String uri, Component component)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 Consumer<Exchange> createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
protected  List<Exchange> createExchangeList()
           
 Producer<Exchange> createProducer()
          Creates a new producer which is used send messages into the endpoint
 List<Exchange> getExchanges()
          Return the exchanges available on this endpoint
 TopicLoadBalancer getLoadBalancer()
           
 boolean isSingleton()
          Returns if the endpoint should be a CamelContext singleton.
protected  void onExchange(Exchange exchange)
          Invoked on a message exchange being sent by a producer
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void reset()
           
 
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

ListEndpoint

public ListEndpoint(String uri,
                    CamelContext camelContext)

ListEndpoint

public ListEndpoint(String uri,
                    Component component)

ListEndpoint

public ListEndpoint(String endpointUri)
Method Detail

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

getLoadBalancer

public TopicLoadBalancer getLoadBalancer()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)

createProducer

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

reset

public void reset()

createExchangeList

protected List<Exchange> createExchangeList()

onExchange

protected void onExchange(Exchange exchange)
                   throws Exception
Invoked on a message exchange being sent by a producer

Throws:
Exception


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