|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Endpoint
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)
Configure properties on this endpoint. |
Consumer |
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 |
Exchange |
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 |
Exchange |
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 |
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 |
createProducer()
Creates a new producer which is used send messages into the endpoint |
CamelContext |
getCamelContext()
Returns the context which created the endpoint |
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. |
void |
setCamelContext(CamelContext context)
Sets the camel context. |
Methods inherited from interface org.apache.camel.IsSingleton |
---|
isSingleton |
Method Detail |
---|
String getEndpointUri()
Exchange createExchange()
Exchange 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 exchangeExchange createExchange(Exchange exchange)
exchange
- given exchange to use for pre-polulateCamelContext getCamelContext()
Producer createProducer() throws Exception
Exception
- can be thrownConsumer createConsumer(Processor processor) throws Exception
processor
- the given processor
Exception
- can be thrownPollingConsumer 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)
options
- the options (properties)void setCamelContext(CamelContext context)
context
- the camel contextboolean isLenientProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |