org.apache.camel.component.direct
Class DirectEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.direct.DirectEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class DirectEndpoint
extends DefaultEndpoint

Represents a direct endpoint that synchronously invokes the consumers of the endpoint when a producer sends a message to it.

Version:
$Revision: 789593 $

Constructor Summary
DirectEndpoint()
           
DirectEndpoint(String endpointUri)
           
DirectEndpoint(String uri, DirectComponent component)
           
 
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<DefaultConsumer> getConsumers()
           
 boolean isAllowMultipleConsumers()
           
 boolean isSingleton()
          Wheter this class supports being singleton or not.
 void setAllowMultipleConsumers(boolean allowMutlipleConsumers)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, convertTo, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectEndpoint

public DirectEndpoint()

DirectEndpoint

public DirectEndpoint(String uri,
                      DirectComponent component)

DirectEndpoint

public DirectEndpoint(String endpointUri)
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

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

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

isAllowMultipleConsumers

public boolean isAllowMultipleConsumers()

setAllowMultipleConsumers

public void setAllowMultipleConsumers(boolean allowMutlipleConsumers)

isSingleton

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

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

getConsumers

public List<DefaultConsumer> getConsumers()


Apache CAMEL