|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Endpoint<E extends Exchange>
An endpoint implements the Message Endpoint pattern and represents an endpoint that can send and receive message exchanges
Exchange, Message| 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 |
E |
createExchange(Exchange exchange)
Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values of the headers and messages |
PollingConsumer<E> |
createPollingConsumer()
Creates a new Polling Consumer so that the caller can poll message exchanges from the consumer using PollingConsumer.receive(), PollingConsumer.receiveNoWait() or PollingConsumer.receive(long)
whenever it is ready to do so rather than using the
Event Based Consumer
returned by createConsumer(Processor) |
Producer<E> |
createProducer()
Creates a new producer which is used send messages into the endpoint |
CamelContext |
getContext()
Returns the context which created the endpoint |
String |
getEndpointUri()
Returns the string representation of the endpoint URI |
boolean |
isSingleton()
Returns if the endpoint should be a CamelContext singleton. |
E |
toExchangeType(Exchange exchange)
Converts the given exchange to this endpoints required type |
| Method Detail |
|---|
boolean isSingleton()
String getEndpointUri()
E createExchange()
E createExchange(Exchange exchange)
E toExchangeType(Exchange exchange)
CamelContext getContext()
Producer<E> createProducer()
throws Exception
Exception
Consumer<E> createConsumer(Processor processor)
throws Exception
Exception
PollingConsumer<E> createPollingConsumer()
throws Exception
PollingConsumer.receive(), PollingConsumer.receiveNoWait() or PollingConsumer.receive(long)
whenever it is ready to do so rather than using the
Event Based Consumer
returned by createConsumer(Processor)
Exception - if the pull consumer could not be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||