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 consumer of the
endpoint when a producer sends a message to it.
- Version:
- $Revision: 20067 $
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString |
DirectEndpoint
public DirectEndpoint()
DirectEndpoint
public DirectEndpoint(String endpointUri)
DirectEndpoint
public DirectEndpoint(String endpointUri,
Component component)
DirectEndpoint
public DirectEndpoint(String uri,
Component component,
Map<String,DirectConsumer> consumers)
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
isSingleton
public boolean isSingleton()
- Description copied from interface:
IsSingleton
- Whether this class supports being singleton or not.
- Returns:
- true to be a single shared instance, false to create new instances.
addConsumer
public void addConsumer(DirectConsumer consumer)
removeConsumer
public void removeConsumer(DirectConsumer consumer)
hasConsumer
public boolean hasConsumer(DirectConsumer consumer)
getConsumer
public DirectConsumer getConsumer()
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.