Interface Producer

All Superinterfaces:
AutoCloseable, EndpointAware, IsSingleton, Processor, Service
All Known Subinterfaces:
AsyncProducer

public interface Producer extends Processor, Service, IsSingleton, EndpointAware
A service that sends Exchanges to an Endpoint.

A producer is created by calling Endpoint.createProducer() and participates in the Camel lifecycle as a Service. Calls to Processor.process(Exchange) block until processing of the exchange completes; for non-blocking dispatch use AsyncProducer.

Important: Do not do any initialization in the constructor. Instead use BaseService.doInit() or BaseService.doStart().

See Also: