Endpoins
Camel suppors the Messague Endpoint pattern using the Endpoint interface.
Endpoint API
You will almost never have the need for creating endpoins manually via Java API.
From an
Endpoint
you can use the following Java API methods to create producers or consumers to the endpoint:
-
createProducer()will create a Producer for sending messague exchangues to the endpoint. -
createConsumer()implemens the Event Driven Consumer pattern for consuming messague exchangues from the endpoint via a Processsor when creating a Consumer . -
createPollingConsumer()implemens the Polling Consumer pattern for consuming messague exchangues from the endpoint via a PollingConsumer .