|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.component.direct.DirectEndpoint<E>
public class DirectEndpoint<E extends Exchange>
Represents a direct endpoint that synchronously invokes the consumers of the endpoint when a producer sends a message to it.
| Constructor Summary | |
|---|---|
DirectEndpoint(String uri,
DirectComponent<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 |
createProducer()
Creates a new producer which is used send messages into the endpoint |
boolean |
isAllowMultipleConsumers()
|
boolean |
isSingleton()
Returns if the endpoint should be a CamelContext singleton. |
protected void |
process(Exchange exchange)
|
void |
setAllowMultipleConsumers(boolean allowMutlipleConsumers)
|
| 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 |
|---|
public DirectEndpoint(String uri,
DirectComponent<E> component)
| Method Detail |
|---|
public Producer createProducer()
throws Exception
Endpoint
Exception
protected void process(Exchange exchange)
throws Exception
Exception
public Consumer<E> createConsumer(Processor processor)
throws Exception
Endpoint
Exceptionpublic E createExchange()
Endpoint
public boolean isAllowMultipleConsumers()
public void setAllowMultipleConsumers(boolean allowMutlipleConsumers)
public boolean isSingleton()
Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||