public class DefaultProducerTemplate extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.ProducerTemplate
Message instances in an
Exchange to an Endpoint.| Constructor and Description |
|---|
DefaultProducerTemplate(org.apache.camel.CamelContext camelContext) |
DefaultProducerTemplate(org.apache.camel.CamelContext camelContext,
org.apache.camel.Endpoint defaultEndpoint) |
DefaultProducerTemplate(org.apache.camel.CamelContext camelContext,
ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<Object> |
asyncCallback(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
Object body,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<org.apache.camel.Exchange> |
asyncCallback(org.apache.camel.Endpoint endpoint,
org.apache.camel.Exchange exchange,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<org.apache.camel.Exchange> |
asyncCallback(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<org.apache.camel.Exchange> |
asyncCallback(String uri,
org.apache.camel.Exchange exchange,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<org.apache.camel.Exchange> |
asyncCallback(String uri,
org.apache.camel.Processor processor,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<Object> |
asyncCallbackRequestBody(org.apache.camel.Endpoint endpoint,
Object body,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<Object> |
asyncCallbackRequestBody(String uri,
Object body,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<Object> |
asyncCallbackSendBody(org.apache.camel.Endpoint endpoint,
Object body,
org.apache.camel.spi.Synchronization onCompletion) |
CompletableFuture<Object> |
asyncCallbackSendBody(String uri,
Object body,
org.apache.camel.spi.Synchronization onCompletion) |
protected CompletableFuture<org.apache.camel.Exchange> |
asyncRequest(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
org.apache.camel.Processor resultProcessor) |
CompletableFuture<Object> |
asyncRequestBody(org.apache.camel.Endpoint endpoint,
Object body) |
<T> CompletableFuture<T> |
asyncRequestBody(org.apache.camel.Endpoint endpoint,
Object body,
Class<T> type) |
protected CompletableFuture<Object> |
asyncRequestBody(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor) |
protected <T> CompletableFuture<T> |
asyncRequestBody(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
Class<T> type) |
protected CompletableFuture<Object> |
asyncRequestBody(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
org.apache.camel.Processor resultProcessor) |
CompletableFuture<Object> |
asyncRequestBody(String uri,
Object body) |
<T> CompletableFuture<T> |
asyncRequestBody(String uri,
Object body,
Class<T> type) |
CompletableFuture<Object> |
asyncRequestBodyAndHeader(org.apache.camel.Endpoint endpoint,
Object body,
String header,
Object headerValue) |
<T> CompletableFuture<T> |
asyncRequestBodyAndHeader(org.apache.camel.Endpoint endpoint,
Object body,
String header,
Object headerValue,
Class<T> type) |
CompletableFuture<Object> |
asyncRequestBodyAndHeader(String endpointUri,
Object body,
String header,
Object headerValue) |
<T> CompletableFuture<T> |
asyncRequestBodyAndHeader(String endpointUri,
Object body,
String header,
Object headerValue,
Class<T> type) |
CompletableFuture<Object> |
asyncRequestBodyAndHeaders(org.apache.camel.Endpoint endpoint,
Object body,
Map<String,Object> headers) |
<T> CompletableFuture<T> |
asyncRequestBodyAndHeaders(org.apache.camel.Endpoint endpoint,
Object body,
Map<String,Object> headers,
Class<T> type) |
CompletableFuture<Object> |
asyncRequestBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers) |
<T> CompletableFuture<T> |
asyncRequestBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers,
Class<T> type) |
CompletableFuture<org.apache.camel.Exchange> |
asyncSend(org.apache.camel.Endpoint endpoint,
org.apache.camel.Exchange exchange) |
protected CompletableFuture<org.apache.camel.Exchange> |
asyncSend(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
org.apache.camel.Processor processor,
org.apache.camel.Processor resultProcessor) |
CompletableFuture<org.apache.camel.Exchange> |
asyncSend(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor) |
CompletableFuture<org.apache.camel.Exchange> |
asyncSend(String uri,
org.apache.camel.Exchange exchange) |
CompletableFuture<org.apache.camel.Exchange> |
asyncSend(String uri,
org.apache.camel.Processor processor) |
CompletableFuture<Object> |
asyncSendBody(org.apache.camel.Endpoint endpoint,
Object body) |
CompletableFuture<Object> |
asyncSendBody(String uri,
Object body) |
protected CompletableFuture<org.apache.camel.Exchange> |
asyncSendExchange(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
org.apache.camel.Processor processor,
org.apache.camel.Processor resultProcessor,
org.apache.camel.Exchange inExchange) |
void |
cleanUp() |
protected org.apache.camel.Processor |
createBodyAndHeaderProcessor(Object body,
String header,
Object headerValue) |
protected org.apache.camel.Processor |
createBodyAndHeaders(Object body,
Map<String,Object> headers) |
protected org.apache.camel.Processor |
createBodyAndPropertyProcessor(Object body,
String property,
Object propertyValue) |
protected Function<org.apache.camel.Exchange,org.apache.camel.Exchange> |
createCompletionFunction(org.apache.camel.spi.Synchronization onCompletion) |
protected org.apache.camel.Processor |
createConvertBodyProcessor(Class<?> type) |
protected org.apache.camel.Processor |
createSetBodyProcessor(Object body) |
protected void |
doStart() |
protected void |
doStop() |
<T> T |
extractFutureBody(Future<?> future,
Class<T> type) |
<T> T |
extractFutureBody(Future<?> future,
long timeout,
TimeUnit unit,
Class<T> type) |
protected Object |
extractResultBody(org.apache.camel.Exchange result) |
protected Object |
extractResultBody(org.apache.camel.Exchange result,
org.apache.camel.ExchangePattern pattern) |
org.apache.camel.CamelContext |
getCamelContext() |
int |
getCurrentCacheSize() |
org.apache.camel.Endpoint |
getDefaultEndpoint() |
protected org.apache.camel.Endpoint |
getMandatoryDefaultEndpoint() |
int |
getMaximumCacheSize() |
boolean |
isEventNotifierEnabled() |
boolean |
isThreadedAsyncMode() |
static DefaultProducerTemplate |
newInstance(org.apache.camel.CamelContext camelContext,
String defaultEndpointUri) |
org.apache.camel.Exchange |
request(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
request(String endpointUri,
org.apache.camel.Processor processor) |
Object |
requestBody(org.apache.camel.Endpoint endpoint,
Object body) |
<T> T |
requestBody(org.apache.camel.Endpoint endpoint,
Object body,
Class<T> type) |
Object |
requestBody(Object body) |
<T> T |
requestBody(Object body,
Class<T> type) |
Object |
requestBody(String endpointUri,
Object body) |
<T> T |
requestBody(String endpointUri,
Object body,
Class<T> type) |
Object |
requestBodyAndHeader(org.apache.camel.Endpoint endpoint,
Object body,
String header,
Object headerValue) |
<T> T |
requestBodyAndHeader(org.apache.camel.Endpoint endpoint,
Object body,
String header,
Object headerValue,
Class<T> type) |
Object |
requestBodyAndHeader(Object body,
String header,
Object headerValue) |
Object |
requestBodyAndHeader(String endpointUri,
Object body,
String header,
Object headerValue) |
<T> T |
requestBodyAndHeader(String endpointUri,
Object body,
String header,
Object headerValue,
Class<T> type) |
Object |
requestBodyAndHeaders(org.apache.camel.Endpoint endpoint,
Object body,
Map<String,Object> headers) |
<T> T |
requestBodyAndHeaders(org.apache.camel.Endpoint endpoint,
Object body,
Map<String,Object> headers,
Class<T> type) |
Object |
requestBodyAndHeaders(Object body,
Map<String,Object> headers) |
Object |
requestBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers) |
<T> T |
requestBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers,
Class<T> type) |
protected org.apache.camel.Endpoint |
resolveMandatoryEndpoint(String endpointUri) |
org.apache.camel.Exchange |
send(org.apache.camel.Endpoint endpoint,
org.apache.camel.Exchange exchange) |
org.apache.camel.Exchange |
send(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
send(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
org.apache.camel.Processor processor,
org.apache.camel.Processor resultProcessor) |
org.apache.camel.Exchange |
send(org.apache.camel.Endpoint endpoint,
org.apache.camel.Exchange exchange,
org.apache.camel.Processor resultProcessor) |
org.apache.camel.Exchange |
send(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
send(org.apache.camel.Exchange exchange) |
org.apache.camel.Exchange |
send(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
send(String endpointUri,
org.apache.camel.Exchange exchange) |
org.apache.camel.Exchange |
send(String endpointUri,
org.apache.camel.ExchangePattern pattern,
org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
send(String endpointUri,
org.apache.camel.Processor processor) |
Object |
sendBody(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
Object body) |
void |
sendBody(org.apache.camel.Endpoint endpoint,
Object body) |
void |
sendBody(Object body) |
Object |
sendBody(String endpointUri,
org.apache.camel.ExchangePattern pattern,
Object body) |
void |
sendBody(String endpointUri,
Object body) |
Object |
sendBodyAndHeader(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
Object body,
String header,
Object headerValue) |
void |
sendBodyAndHeader(org.apache.camel.Endpoint endpoint,
Object body,
String header,
Object headerValue) |
void |
sendBodyAndHeader(Object body,
String header,
Object headerValue) |
Object |
sendBodyAndHeader(String endpoint,
org.apache.camel.ExchangePattern pattern,
Object body,
String header,
Object headerValue) |
void |
sendBodyAndHeader(String endpointUri,
Object body,
String header,
Object headerValue) |
Object |
sendBodyAndHeaders(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
Object body,
Map<String,Object> headers) |
void |
sendBodyAndHeaders(org.apache.camel.Endpoint endpoint,
Object body,
Map<String,Object> headers) |
void |
sendBodyAndHeaders(Object body,
Map<String,Object> headers) |
Object |
sendBodyAndHeaders(String endpointUri,
org.apache.camel.ExchangePattern pattern,
Object body,
Map<String,Object> headers) |
void |
sendBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers) |
Object |
sendBodyAndProperty(org.apache.camel.Endpoint endpoint,
org.apache.camel.ExchangePattern pattern,
Object body,
String property,
Object propertyValue) |
void |
sendBodyAndProperty(org.apache.camel.Endpoint endpoint,
Object body,
String property,
Object propertyValue) |
void |
sendBodyAndProperty(Object body,
String property,
Object propertyValue) |
Object |
sendBodyAndProperty(String endpoint,
org.apache.camel.ExchangePattern pattern,
Object body,
String property,
Object propertyValue) |
void |
sendBodyAndProperty(String endpointUri,
Object body,
String property,
Object propertyValue) |
void |
setDefaultEndpoint(org.apache.camel.Endpoint defaultEndpoint) |
void |
setDefaultEndpointUri(String endpointUri)
Sets the default endpoint to use if none is specified
|
void |
setEventNotifierEnabled(boolean eventNotifierEnabled) |
void |
setExecutorService(ExecutorService executorService) |
void |
setMaximumCacheSize(int maximumCacheSize) |
void |
setThreadedAsyncMode(boolean useExecutor) |
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic DefaultProducerTemplate(org.apache.camel.CamelContext camelContext)
public DefaultProducerTemplate(org.apache.camel.CamelContext camelContext, ExecutorService executor)
public DefaultProducerTemplate(org.apache.camel.CamelContext camelContext, org.apache.camel.Endpoint defaultEndpoint)
public static DefaultProducerTemplate newInstance(org.apache.camel.CamelContext camelContext, String defaultEndpointUri)
public int getMaximumCacheSize()
getMaximumCacheSize in interface org.apache.camel.ProducerTemplatepublic void setMaximumCacheSize(int maximumCacheSize)
setMaximumCacheSize in interface org.apache.camel.ProducerTemplatepublic boolean isThreadedAsyncMode()
isThreadedAsyncMode in interface org.apache.camel.ProducerTemplatepublic void setThreadedAsyncMode(boolean useExecutor)
setThreadedAsyncMode in interface org.apache.camel.ProducerTemplatepublic int getCurrentCacheSize()
getCurrentCacheSize in interface org.apache.camel.ProducerTemplatepublic boolean isEventNotifierEnabled()
isEventNotifierEnabled in interface org.apache.camel.ProducerTemplatepublic void cleanUp()
cleanUp in interface org.apache.camel.ProducerTemplatepublic void setEventNotifierEnabled(boolean eventNotifierEnabled)
setEventNotifierEnabled in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(String endpointUri, org.apache.camel.Exchange exchange)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(String endpointUri, org.apache.camel.Processor processor)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(String endpointUri, org.apache.camel.ExchangePattern pattern, org.apache.camel.Processor processor)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.Exchange exchange)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, org.apache.camel.Processor processor)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, org.apache.camel.Processor processor, org.apache.camel.Processor resultProcessor)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.Exchange exchange, org.apache.camel.Processor resultProcessor)
public Object sendBody(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, Object body)
sendBody in interface org.apache.camel.ProducerTemplatepublic void sendBody(org.apache.camel.Endpoint endpoint, Object body) throws org.apache.camel.CamelExecutionException
sendBody in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBody(String endpointUri, Object body) throws org.apache.camel.CamelExecutionException
sendBody in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBody(String endpointUri, org.apache.camel.ExchangePattern pattern, Object body) throws org.apache.camel.CamelExecutionException
sendBody in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBodyAndHeader(String endpointUri, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
sendBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
sendBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBodyAndHeader(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
sendBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBodyAndHeader(String endpoint, org.apache.camel.ExchangePattern pattern, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
sendBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBodyAndProperty(String endpointUri, Object body, String property, Object propertyValue) throws org.apache.camel.CamelExecutionException
sendBodyAndProperty in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBodyAndProperty(org.apache.camel.Endpoint endpoint, Object body, String property, Object propertyValue) throws org.apache.camel.CamelExecutionException
sendBodyAndProperty in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBodyAndProperty(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, Object body, String property, Object propertyValue) throws org.apache.camel.CamelExecutionException
sendBodyAndProperty in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBodyAndProperty(String endpoint, org.apache.camel.ExchangePattern pattern, Object body, String property, Object propertyValue) throws org.apache.camel.CamelExecutionException
sendBodyAndProperty in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers) throws org.apache.camel.CamelExecutionException
sendBodyAndHeaders in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic void sendBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers) throws org.apache.camel.CamelExecutionException
sendBodyAndHeaders in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBodyAndHeaders(String endpointUri, org.apache.camel.ExchangePattern pattern, Object body, Map<String,Object> headers) throws org.apache.camel.CamelExecutionException
sendBodyAndHeaders in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object sendBodyAndHeaders(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, Object body, Map<String,Object> headers) throws org.apache.camel.CamelExecutionException
sendBodyAndHeaders in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic org.apache.camel.Exchange request(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
request in interface org.apache.camel.ProducerTemplatepublic Object requestBody(Object body) throws org.apache.camel.CamelExecutionException
requestBody in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object requestBody(org.apache.camel.Endpoint endpoint, Object body) throws org.apache.camel.CamelExecutionException
requestBody in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object requestBodyAndHeader(Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
requestBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object requestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
requestBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic org.apache.camel.Exchange request(String endpointUri, org.apache.camel.Processor processor) throws org.apache.camel.CamelExecutionException
request in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object requestBody(String endpointUri, Object body) throws org.apache.camel.CamelExecutionException
requestBody in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object requestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
requestBodyAndHeader in interface org.apache.camel.ProducerTemplateorg.apache.camel.CamelExecutionExceptionpublic Object requestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers)
requestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic Object requestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers)
requestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic Object requestBodyAndHeaders(Object body, Map<String,Object> headers)
requestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic <T> T requestBody(Object body, Class<T> type)
requestBody in interface org.apache.camel.ProducerTemplatepublic <T> T requestBody(org.apache.camel.Endpoint endpoint, Object body, Class<T> type)
requestBody in interface org.apache.camel.ProducerTemplatepublic <T> T requestBody(String endpointUri, Object body, Class<T> type)
requestBody in interface org.apache.camel.ProducerTemplatepublic <T> T requestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue, Class<T> type)
requestBodyAndHeader in interface org.apache.camel.ProducerTemplatepublic <T> T requestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue, Class<T> type)
requestBodyAndHeader in interface org.apache.camel.ProducerTemplatepublic <T> T requestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers, Class<T> type)
requestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic <T> T requestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers, Class<T> type)
requestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic void sendBody(Object body)
sendBody in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Exchange exchange)
send in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Exchange send(org.apache.camel.Processor processor)
send in interface org.apache.camel.ProducerTemplatepublic void sendBodyAndHeader(Object body, String header, Object headerValue)
sendBodyAndHeader in interface org.apache.camel.ProducerTemplatepublic void sendBodyAndProperty(Object body, String property, Object propertyValue)
sendBodyAndProperty in interface org.apache.camel.ProducerTemplatepublic void sendBodyAndHeaders(Object body, Map<String,Object> headers)
sendBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.ProducerTemplatepublic org.apache.camel.Endpoint getDefaultEndpoint()
getDefaultEndpoint in interface org.apache.camel.ProducerTemplatepublic void setDefaultEndpoint(org.apache.camel.Endpoint defaultEndpoint)
setDefaultEndpoint in interface org.apache.camel.ProducerTemplatepublic void setDefaultEndpointUri(String endpointUri)
setDefaultEndpointUri in interface org.apache.camel.ProducerTemplateprotected org.apache.camel.Processor createBodyAndHeaderProcessor(Object body, String header, Object headerValue)
protected org.apache.camel.Processor createBodyAndHeaders(Object body, Map<String,Object> headers)
protected org.apache.camel.Processor createBodyAndPropertyProcessor(Object body, String property, Object propertyValue)
protected org.apache.camel.Processor createSetBodyProcessor(Object body)
protected org.apache.camel.Processor createConvertBodyProcessor(Class<?> type)
protected Function<org.apache.camel.Exchange,org.apache.camel.Exchange> createCompletionFunction(org.apache.camel.spi.Synchronization onCompletion)
protected org.apache.camel.Endpoint resolveMandatoryEndpoint(String endpointUri)
protected org.apache.camel.Endpoint getMandatoryDefaultEndpoint()
protected Object extractResultBody(org.apache.camel.Exchange result)
protected Object extractResultBody(org.apache.camel.Exchange result, org.apache.camel.ExchangePattern pattern)
public void setExecutorService(ExecutorService executorService)
setExecutorService in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncSend(String uri, org.apache.camel.Exchange exchange)
asyncSend in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncSend(String uri, org.apache.camel.Processor processor)
asyncSend in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncSendBody(String uri, Object body)
asyncSendBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncRequestBody(String uri, Object body)
asyncRequestBody in interface org.apache.camel.ProducerTemplatepublic <T> CompletableFuture<T> asyncRequestBody(String uri, Object body, Class<T> type)
asyncRequestBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncRequestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue)
asyncRequestBodyAndHeader in interface org.apache.camel.ProducerTemplatepublic <T> CompletableFuture<T> asyncRequestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue, Class<T> type)
asyncRequestBodyAndHeader in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncRequestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers)
asyncRequestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic <T> CompletableFuture<T> asyncRequestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers, Class<T> type)
asyncRequestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic <T> T extractFutureBody(Future<?> future, Class<T> type)
extractFutureBody in interface org.apache.camel.ProducerTemplatepublic <T> T extractFutureBody(Future<?> future, long timeout, TimeUnit unit, Class<T> type) throws TimeoutException
extractFutureBody in interface org.apache.camel.ProducerTemplateTimeoutExceptionpublic CompletableFuture<Object> asyncCallbackSendBody(String uri, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackSendBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncCallbackSendBody(org.apache.camel.Endpoint endpoint, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackSendBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncCallbackRequestBody(String uri, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackRequestBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncCallbackRequestBody(org.apache.camel.Endpoint endpoint, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackRequestBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncCallback(String uri, org.apache.camel.Exchange exchange, org.apache.camel.spi.Synchronization onCompletion)
asyncCallback in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncCallback(String uri, org.apache.camel.Processor processor, org.apache.camel.spi.Synchronization onCompletion)
asyncCallback in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncRequestBody(org.apache.camel.Endpoint endpoint, Object body)
asyncRequestBody in interface org.apache.camel.ProducerTemplatepublic <T> CompletableFuture<T> asyncRequestBody(org.apache.camel.Endpoint endpoint, Object body, Class<T> type)
asyncRequestBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncRequestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue)
asyncRequestBodyAndHeader in interface org.apache.camel.ProducerTemplateprotected <T> CompletableFuture<T> asyncRequestBody(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor, Class<T> type)
public <T> CompletableFuture<T> asyncRequestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue, Class<T> type)
asyncRequestBodyAndHeader in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncRequestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers)
asyncRequestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic <T> CompletableFuture<T> asyncRequestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers, Class<T> type)
asyncRequestBodyAndHeaders in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncSend(org.apache.camel.Endpoint endpoint, org.apache.camel.Exchange exchange)
asyncSend in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncSend(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
asyncSend in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<Object> asyncSendBody(org.apache.camel.Endpoint endpoint, Object body)
asyncSendBody in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncCallback(org.apache.camel.Endpoint endpoint, org.apache.camel.Exchange exchange, org.apache.camel.spi.Synchronization onCompletion)
asyncCallback in interface org.apache.camel.ProducerTemplatepublic CompletableFuture<org.apache.camel.Exchange> asyncCallback(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.spi.Synchronization onCompletion)
asyncCallback in interface org.apache.camel.ProducerTemplateprotected CompletableFuture<Object> asyncRequestBody(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
protected CompletableFuture<Object> asyncRequestBody(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.Processor resultProcessor)
protected CompletableFuture<org.apache.camel.Exchange> asyncRequest(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.Processor resultProcessor)
protected CompletableFuture<org.apache.camel.Exchange> asyncSend(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, org.apache.camel.Processor processor, org.apache.camel.Processor resultProcessor)
protected CompletableFuture<org.apache.camel.Exchange> asyncSendExchange(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, org.apache.camel.Processor processor, org.apache.camel.Processor resultProcessor, org.apache.camel.Exchange inExchange)
protected CompletableFuture<Object> asyncCallback(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern, Object body, org.apache.camel.spi.Synchronization onCompletion)
protected void doStart() throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionApache Camel