Uses of Interface
org.apache.camel.FluentProducerTemplate
Packages that use FluentProducerTemplate
-
Uses of FluentProducerTemplate in org.apache.camel
Methods in org.apache.camel that return FluentProducerTemplateModifier and TypeMethodDescriptionCamelContext.createFluentProducerTemplate()Creates a newFluentProducerTemplatewhich is started and therefore ready to use right away.CamelContext.createFluentProducerTemplate(int maximumCacheSize) Creates a newFluentProducerTemplatewhich is started and therefore ready to use right away.default FluentProducerTemplateEndpoint to send toEndpoint to send todefault FluentProducerTemplateFluentProducerTemplate.to(EndpointProducerResolver resolver) Endpoint to send todefault FluentProducerTemplateEndpoint 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.withExchangeProperties(Map<String, Object> properties) Set the exchange properties Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.FluentProducerTemplate.withExchangeProperty(String key, Object value) Set the exchange property Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.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.FluentProducerTemplate.withVariable(String key, Object value) Set the exchange property Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.FluentProducerTemplate.withVariables(Map<String, Object> variables) Set the variables Important: You can either only use either withExchange, or withProcessor or a combination of withBody/withHeaders to construct the message to be sent.