public class OutboundMapping extends CamelMapping
DEFAULT_HEADERS_COPY| Constructor and Description |
|---|
OutboundMapping() |
| Modifier and Type | Method and Description |
|---|---|
static OutboundMapping |
fromVertx(String address)
Creates an
OutboundMapping from the given Vert.x address. |
WorkerExecutor |
getWorkerExecutor() |
boolean |
isBlocking()
Whether the processing is blocking and so should not be executed on the event loop.
|
OutboundMapping |
setAddress(String address)
Sets the event bus address.
|
OutboundMapping |
setBlocking(boolean blocking)
Sets whether or not the processing is blocking.
|
OutboundMapping |
setEndpoint(org.apache.camel.Endpoint endpoint)
Sets the Camel endpoint.
|
OutboundMapping |
setHeadersCopy(boolean copyHeaders)
Sets whether or not the headers of the input message are copied in the output message.
|
OutboundMapping |
setUri(String uri)
Sets the Camel endpoint URI.
|
OutboundMapping |
setWorkerExecutor(WorkerExecutor pool)
Sets the worker thread worker used to execute the blocking processing.
|
OutboundMapping |
toCamel(org.apache.camel.Endpoint endpoint)
Fluent version of
setEndpoint(Endpoint). |
OutboundMapping |
toCamel(String uri)
Fluent version of
setUri(String). |
OutboundMapping |
withoutHeadersCopy()
Fluent version of
setHeadersCopy(boolean) to disable the headers copy. |
getAddress, getUri, isHeadersCopypublic static OutboundMapping fromVertx(String address)
OutboundMapping from the given Vert.x address.address - the address - must not be nullOutboundMappingpublic OutboundMapping setAddress(String address)
CamelMappingsetAddress in class CamelMappingaddress - the addressCamelMappingpublic OutboundMapping setHeadersCopy(boolean copyHeaders)
CamelMappingsetHeadersCopy in class CamelMappingcopyHeaders - true to copy the headersCamelMappingpublic OutboundMapping setUri(String uri)
CamelMappingsetUri in class CamelMappinguri - the uriCamelMappingpublic OutboundMapping setEndpoint(org.apache.camel.Endpoint endpoint)
CamelMappingCamelMapping.setUri(String) does not need to be called.setEndpoint in class CamelMappingendpoint - the endpointCamelMappingpublic OutboundMapping toCamel(String uri)
setUri(String).uri - the uriOutboundMappingpublic OutboundMapping toCamel(org.apache.camel.Endpoint endpoint)
setEndpoint(Endpoint).endpoint - the endpointOutboundMappingpublic OutboundMapping withoutHeadersCopy()
setHeadersCopy(boolean) to disable the headers copy.OutboundMappingpublic boolean isBlocking()
public OutboundMapping setBlocking(boolean blocking)
false by default.blocking - true to set it to blocking.OutboundMappingpublic WorkerExecutor getWorkerExecutor()
true. If not set, it uses the the default worker worker.public OutboundMapping setWorkerExecutor(WorkerExecutor pool)
true. If not set, it uses the the default worker worker.pool - the worker worker on which the code is executedOutboundMappingCopyright © 2021 Eclipse. All rights reserved.