|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint<Exchange>
org.apache.camel.impl.ProcessorEndpoint
public class ProcessorEndpoint
An endpoint which allows exchanges to be sent into it which just invokes a
given Processor
. This component does not support the use of
consumers.
Constructor Summary | |
---|---|
ProcessorEndpoint(String endpointUri,
CamelContext context,
Processor processor)
|
|
ProcessorEndpoint(String endpointUri,
Component component,
Processor processor)
|
Method Summary | |
---|---|
Consumer<Exchange> |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Exchange |
createExchange()
Create a new exchange for communicating with this endpoint |
Producer<Exchange> |
createProducer()
Creates a new producer which is used send messages into the endpoint |
Processor |
getProcessor()
|
boolean |
isSingleton()
Returns if the endpoint should be a CamelContext singleton. |
protected void |
onExchange(Exchange exchange)
|
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 ProcessorEndpoint(String endpointUri, CamelContext context, Processor processor)
public ProcessorEndpoint(String endpointUri, Component component, Processor processor)
Method Detail |
---|
public Exchange createExchange()
Endpoint
public Producer<Exchange> createProducer() throws Exception
Endpoint
Exception
public Consumer<Exchange> createConsumer(Processor processor) throws Exception
Endpoint
Exception
public Processor getProcessor()
protected void onExchange(Exchange exchange) throws Exception
Exception
public boolean isSingleton()
Endpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |