org.apache.camel.component.direct
Class DirectEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
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: 751221 $
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
DirectEndpoint
public DirectEndpoint()
DirectEndpoint
public DirectEndpoint(String uri,
DirectComponent component)
DirectEndpoint
public DirectEndpoint(String endpointUri)
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()
Copyright © 2009 Apache Software Foundation. All Rights Reserved.