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, isHeadersCopy
public static OutboundMapping fromVertx(String address)
OutboundMapping
from the given Vert.x address.address
- the address - must not be null
OutboundMapping
public OutboundMapping setAddress(String address)
CamelMapping
setAddress
in class CamelMapping
address
- the addressCamelMapping
public OutboundMapping setHeadersCopy(boolean copyHeaders)
CamelMapping
setHeadersCopy
in class CamelMapping
copyHeaders
- true
to copy the headersCamelMapping
public OutboundMapping setUri(String uri)
CamelMapping
setUri
in class CamelMapping
uri
- the uriCamelMapping
public OutboundMapping setEndpoint(org.apache.camel.Endpoint endpoint)
CamelMapping
CamelMapping.setUri(String)
does not need to be called.setEndpoint
in class CamelMapping
endpoint
- the endpointCamelMapping
public OutboundMapping toCamel(String uri)
setUri(String)
.uri
- the uriOutboundMapping
public OutboundMapping toCamel(org.apache.camel.Endpoint endpoint)
setEndpoint(Endpoint)
.endpoint
- the endpointOutboundMapping
public OutboundMapping withoutHeadersCopy()
setHeadersCopy(boolean)
to disable the headers copy.OutboundMapping
public boolean isBlocking()
public OutboundMapping setBlocking(boolean blocking)
false
by default.blocking
- true
to set it to blocking.OutboundMapping
public 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 executedOutboundMapping
Copyright © 2022 Eclipse. All rights reserved.