...
- Event Driven Consumer via the Consumer interface
- Polling Consumer via the PollingConsumer interface
When implementing an Endpoint you typically may implement one or more of the following methods
- createProducer() will create a Producer for sending message exchanges to the endpoint
- createConsumer() implements the Event Driven Consumer pattern creating a Consumer
- createPollingConsumer() implements the Polling Consumer pattern implementing a PollingConsumer
Typically you just derive from DefaultEndpoint and implement any of the factory methods required such as
- createProducer() and / or createConsumer() methods. The createPollingConsumer() method will be created by default for you in the DefaultEndpoint class.
If your endpoint is a polling-centric component you can just derive from DefaultPollingEndpoint and then implement createPollingConsumer(); the createConsumer() method will be created for you which avoids you having to write any polling code.
Dependency injection and auto-discovery
...