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, suspend
public 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.ProducerTemplate
public void setMaximumCacheSize(int maximumCacheSize)
setMaximumCacheSize
in interface org.apache.camel.ProducerTemplate
public boolean isThreadedAsyncMode()
isThreadedAsyncMode
in interface org.apache.camel.ProducerTemplate
public void setThreadedAsyncMode(boolean useExecutor)
setThreadedAsyncMode
in interface org.apache.camel.ProducerTemplate
public int getCurrentCacheSize()
getCurrentCacheSize
in interface org.apache.camel.ProducerTemplate
public boolean isEventNotifierEnabled()
isEventNotifierEnabled
in interface org.apache.camel.ProducerTemplate
public void cleanUp()
cleanUp
in interface org.apache.camel.ProducerTemplate
public void setEventNotifierEnabled(boolean eventNotifierEnabled)
setEventNotifierEnabled
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(String endpointUri, org.apache.camel.Exchange exchange)
send
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(String endpointUri, org.apache.camel.Processor processor)
send
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(String endpointUri, org.apache.camel.ExchangePattern pattern, org.apache.camel.Processor processor)
send
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.Exchange exchange)
send
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
send
in interface org.apache.camel.ProducerTemplate
public 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.ProducerTemplate
public 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.ProducerTemplate
public 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.ProducerTemplate
public void sendBody(org.apache.camel.Endpoint endpoint, Object body) throws org.apache.camel.CamelExecutionException
sendBody
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBody(String endpointUri, Object body) throws org.apache.camel.CamelExecutionException
sendBody
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object sendBody(String endpointUri, org.apache.camel.ExchangePattern pattern, Object body) throws org.apache.camel.CamelExecutionException
sendBody
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBodyAndHeader(String endpointUri, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
sendBodyAndHeader
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
sendBodyAndHeader
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public 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.ProducerTemplate
org.apache.camel.CamelExecutionException
public 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.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBodyAndProperty(String endpointUri, Object body, String property, Object propertyValue) throws org.apache.camel.CamelExecutionException
sendBodyAndProperty
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBodyAndProperty(org.apache.camel.Endpoint endpoint, Object body, String property, Object propertyValue) throws org.apache.camel.CamelExecutionException
sendBodyAndProperty
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public 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.ProducerTemplate
org.apache.camel.CamelExecutionException
public 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.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers) throws org.apache.camel.CamelExecutionException
sendBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public void sendBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers) throws org.apache.camel.CamelExecutionException
sendBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public 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.ProducerTemplate
org.apache.camel.CamelExecutionException
public 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.ProducerTemplate
org.apache.camel.CamelExecutionException
public org.apache.camel.Exchange request(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
request
in interface org.apache.camel.ProducerTemplate
public Object requestBody(Object body) throws org.apache.camel.CamelExecutionException
requestBody
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object requestBody(org.apache.camel.Endpoint endpoint, Object body) throws org.apache.camel.CamelExecutionException
requestBody
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object requestBodyAndHeader(Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
requestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object requestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
requestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public org.apache.camel.Exchange request(String endpointUri, org.apache.camel.Processor processor) throws org.apache.camel.CamelExecutionException
request
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object requestBody(String endpointUri, Object body) throws org.apache.camel.CamelExecutionException
requestBody
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object requestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue) throws org.apache.camel.CamelExecutionException
requestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
org.apache.camel.CamelExecutionException
public Object requestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers)
requestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public Object requestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers)
requestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public Object requestBodyAndHeaders(Object body, Map<String,Object> headers)
requestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public <T> T requestBody(Object body, Class<T> type)
requestBody
in interface org.apache.camel.ProducerTemplate
public <T> T requestBody(org.apache.camel.Endpoint endpoint, Object body, Class<T> type)
requestBody
in interface org.apache.camel.ProducerTemplate
public <T> T requestBody(String endpointUri, Object body, Class<T> type)
requestBody
in interface org.apache.camel.ProducerTemplate
public <T> T requestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue, Class<T> type)
requestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
public <T> T requestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue, Class<T> type)
requestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
public <T> T requestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers, Class<T> type)
requestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public <T> T requestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers, Class<T> type)
requestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public void sendBody(Object body)
sendBody
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(org.apache.camel.Exchange exchange)
send
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Exchange send(org.apache.camel.Processor processor)
send
in interface org.apache.camel.ProducerTemplate
public void sendBodyAndHeader(Object body, String header, Object headerValue)
sendBodyAndHeader
in interface org.apache.camel.ProducerTemplate
public void sendBodyAndProperty(Object body, String property, Object propertyValue)
sendBodyAndProperty
in interface org.apache.camel.ProducerTemplate
public void sendBodyAndHeaders(Object body, Map<String,Object> headers)
sendBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.ProducerTemplate
public org.apache.camel.Endpoint getDefaultEndpoint()
getDefaultEndpoint
in interface org.apache.camel.ProducerTemplate
public void setDefaultEndpoint(org.apache.camel.Endpoint defaultEndpoint)
setDefaultEndpoint
in interface org.apache.camel.ProducerTemplate
public void setDefaultEndpointUri(String endpointUri)
setDefaultEndpointUri
in interface org.apache.camel.ProducerTemplate
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 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.ProducerTemplate
public CompletableFuture<org.apache.camel.Exchange> asyncSend(String uri, org.apache.camel.Exchange exchange)
asyncSend
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<org.apache.camel.Exchange> asyncSend(String uri, org.apache.camel.Processor processor)
asyncSend
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncSendBody(String uri, Object body)
asyncSendBody
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncRequestBody(String uri, Object body)
asyncRequestBody
in interface org.apache.camel.ProducerTemplate
public <T> CompletableFuture<T> asyncRequestBody(String uri, Object body, Class<T> type)
asyncRequestBody
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncRequestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue)
asyncRequestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
public <T> CompletableFuture<T> asyncRequestBodyAndHeader(String endpointUri, Object body, String header, Object headerValue, Class<T> type)
asyncRequestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncRequestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers)
asyncRequestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public <T> CompletableFuture<T> asyncRequestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers, Class<T> type)
asyncRequestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public <T> T extractFutureBody(Future<?> future, Class<T> type)
extractFutureBody
in interface org.apache.camel.ProducerTemplate
public <T> T extractFutureBody(Future<?> future, long timeout, TimeUnit unit, Class<T> type) throws TimeoutException
extractFutureBody
in interface org.apache.camel.ProducerTemplate
TimeoutException
public CompletableFuture<Object> asyncCallbackSendBody(String uri, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackSendBody
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncCallbackSendBody(org.apache.camel.Endpoint endpoint, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackSendBody
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncCallbackRequestBody(String uri, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackRequestBody
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncCallbackRequestBody(org.apache.camel.Endpoint endpoint, Object body, org.apache.camel.spi.Synchronization onCompletion)
asyncCallbackRequestBody
in interface org.apache.camel.ProducerTemplate
public 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.ProducerTemplate
public 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.ProducerTemplate
public CompletableFuture<Object> asyncRequestBody(org.apache.camel.Endpoint endpoint, Object body)
asyncRequestBody
in interface org.apache.camel.ProducerTemplate
public <T> CompletableFuture<T> asyncRequestBody(org.apache.camel.Endpoint endpoint, Object body, Class<T> type)
asyncRequestBody
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncRequestBodyAndHeader(org.apache.camel.Endpoint endpoint, Object body, String header, Object headerValue)
asyncRequestBodyAndHeader
in interface org.apache.camel.ProducerTemplate
protected <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.ProducerTemplate
public CompletableFuture<Object> asyncRequestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers)
asyncRequestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public <T> CompletableFuture<T> asyncRequestBodyAndHeaders(org.apache.camel.Endpoint endpoint, Object body, Map<String,Object> headers, Class<T> type)
asyncRequestBodyAndHeaders
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<org.apache.camel.Exchange> asyncSend(org.apache.camel.Endpoint endpoint, org.apache.camel.Exchange exchange)
asyncSend
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<org.apache.camel.Exchange> asyncSend(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
asyncSend
in interface org.apache.camel.ProducerTemplate
public CompletableFuture<Object> asyncSendBody(org.apache.camel.Endpoint endpoint, Object body)
asyncSendBody
in interface org.apache.camel.ProducerTemplate
public 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.ProducerTemplate
public 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.ProducerTemplate
protected 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.ServiceSupport
Exception
Apache Camel