Uses of Interface
org.apache.camel.FluentProducerTemplate
-
Uses of FluentProducerTemplate in org.apache.camel
Modifier and TypeMethodDescriptionCamelContext.createFluentProducerTemplate()
Creates a newFluentProducerTemplate
which is started and therefore ready to use right away.CamelContext.createFluentProducerTemplate
(int maximumCacheSize) Creates a newFluentProducerTemplate
which is started and therefore ready to use right away.default FluentProducerTemplate
Endpoint to send toEndpoint to send todefault FluentProducerTemplate
FluentProducerTemplate.to
(EndpointProducerResolver resolver) Endpoint to send todefault FluentProducerTemplate
Endpoint to send to.Set the message body Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.FluentProducerTemplate.withBodyAs
(Object body, Class<?> type) Set the message body after converting it to the given type Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.FluentProducerTemplate.withDefaultEndpoint
(String endpointUri) Sets the default endpointFluentProducerTemplate.withDefaultEndpoint
(Endpoint endpoint) Sets the default endpointFluentProducerTemplate.withDefaultEndpoint
(EndpointProducerResolver resolver) Sets the default endpointFluentProducerTemplate.withExchange
(Supplier<Exchange> exchangeSupplier) Set the exchangeSupplier which will be invoke to get the exchange to be used for send.FluentProducerTemplate.withExchange
(Exchange exchange) Set the exchange to use for send.FluentProducerTemplate.withHeader
(String key, Object value) Set the header Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.FluentProducerTemplate.withHeaders
(Map<String, Object> headers) Set the headers Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.FluentProducerTemplate.withProcessor
(Supplier<Processor> processorSupplier) Set the processorSupplier which will be invoke to get the processor to be used for send/request.FluentProducerTemplate.withProcessor
(Processor processor) Set the processor to use for send/request.FluentProducerTemplate.withTemplateCustomizer
(Consumer<ProducerTemplate> templateCustomizer) To customize the producer template for advanced usage like to set the executor service to use.