|
||||||||||
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 | |
---|---|
void |
configureProperties(Map options)
|
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 |
E |
createExchange(ExchangePattern pattern)
Create a new exchange for communicating with this endpoint with the specified ExchangePattern such as whether its going
to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange |
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 |
getCamelContext()
Returns the context which created the endpoint |
CamelContext |
getContext()
Deprecated. |
String |
getEndpointUri()
Returns the string representation of the endpoint URI |
boolean |
isLenientProperties()
Should all properties be known or does the endpoint allow unknown options? Lenient = false means that the endpoint should validate that all given options is known and configured properly lenient = true means that the endpoint allows additional unknown options to be passed to it but does not throw a ResolveEndpointFailedException when creating the endpoint. |
boolean |
isSingleton()
Returns if the endpoint should be a CamelContext singleton. |
void |
setCamelContext(CamelContext context)
|
void |
setContext(CamelContext context)
Deprecated. |
Method Detail |
---|
boolean isSingleton()
String getEndpointUri()
E createExchange()
E createExchange(ExchangePattern pattern)
ExchangePattern
such as whether its going
to be an ExchangePattern.InOnly
or ExchangePattern.InOut
exchange
pattern
- the message exchange pattern for the exchangeE createExchange(Exchange exchange)
CamelContext getCamelContext()
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 createdvoid configureProperties(Map options)
void setCamelContext(CamelContext context)
@Deprecated CamelContext getContext()
@Deprecated void setContext(CamelContext context)
boolean isLenientProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |