Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.api.management |
Service provider interfaces for management.
|
org.apache.camel.builder | |
org.apache.camel.builder.xml | |
org.apache.camel.component.bean |
The Bean Component which will look up the
bean name in the Spring ApplicationContext and use that to dispatch messages to a POJO
|
org.apache.camel.component.binding |
The Binding Component which is
a way of wrapping an Endpoint in a contract; such as a Data Format, a Content Enricher or validation step.
|
org.apache.camel.component.browse |
The Browse Component which is a simple in memory
component which maintains a list of all message exchanges which can be useful for debugging, tooling or visualistion.
|
org.apache.camel.component.controlbus |
The Control Bus Component which
allows to manage Camel at runtime.
|
org.apache.camel.component.dataset |
A DataSet Endpoint for testing of endpoints using defined DataSets
|
org.apache.camel.component.direct |
The Direct Component which synchronously invokes
all the consumers when a producer sends an exchange to the endpoint.
|
org.apache.camel.component.directvm |
The Direct VM Component which synchronously invokes
the consumer when a producer sends an exchange to the endpoint.
|
org.apache.camel.component.file |
The File Component for working with file systems.
|
org.apache.camel.component.file.strategy |
Strategies for the File Component.
|
org.apache.camel.component.language |
The Language Component to send messages to language endpoints executing
the script.
|
org.apache.camel.component.log |
The Log Component uses Jakarta Commons Logging to log message exchanges.
|
org.apache.camel.component.mock |
The Mock Component which is used for testing of routing and mediation rules.
|
org.apache.camel.component.rest |
The REST Component for defining REST services, supporting
the Camel Rest DSL.
|
org.apache.camel.component.saga | |
org.apache.camel.component.seda | |
org.apache.camel.component.stub |
The Stub Component which is used for stubbing endpoints.
|
org.apache.camel.component.test |
A Test Endpoint for Pattern Based Testing
|
org.apache.camel.component.validator |
The Validator Component for validating XML against some schema
|
org.apache.camel.component.vm |
The VM Component for asynchronous
SEDA exchanges on a
BlockingQueue
within the current JVM; so across CamelContext instances.
|
org.apache.camel.component.xslt |
The XSLT Component for transforming messages with XSLT
|
org.apache.camel.converter |
A set of helper classes for converting from different types of Java object to be used by the
Type Conversion Support
|
org.apache.camel.converter.jaxp |
A number of JAXP related helper classes for converting to and from various JAXP related classes like Document and Source to be used by a
TypeConverter
|
org.apache.camel.converter.stream |
Package with converters for dealing with stream-based messages
|
org.apache.camel.impl |
Default implementation classes for Camel Core
|
org.apache.camel.impl.cloud |
Base classes and implementation for Camel Cloud
|
org.apache.camel.impl.converter |
Default implementation classes the Type Conversion Strategies
|
org.apache.camel.impl.saga |
In-memory Saga coordinator.
|
org.apache.camel.language.bean |
Camel Bean language.
|
org.apache.camel.management |
Camel management
|
org.apache.camel.management.event |
Camel management events
|
org.apache.camel.management.mbean |
Camel management JMX MBeans
|
org.apache.camel.model |
The JAXB POJOs for the
XML Configuration
of the routing rules.
|
org.apache.camel.model.language | |
org.apache.camel.processor |
A collection of Processor
implementations which are used to implement the
Enterprise Integration Patterns
|
org.apache.camel.processor.aggregate |
Helper classes for the Aggregator pattern.
|
org.apache.camel.processor.binding |
Helper classes for the Binding concept on Endpoints.
|
org.apache.camel.processor.exceptionpolicy |
Exception policy startegies for Dead Letter Channel pattern.
|
org.apache.camel.processor.idempotent |
An implementation of the Idempotent Consumer
pattern.
|
org.apache.camel.processor.interceptor |
Helper classes for interceptors.
|
org.apache.camel.processor.loadbalancer |
Various load balancer processors
|
org.apache.camel.processor.resequencer |
Helper classes for the Resequencer pattern.
|
org.apache.camel.processor.saga |
Saga EIP implementation.
|
org.apache.camel.processor.validation |
Performs XML validation using JAXP for validating against XSD
|
org.apache.camel.saga |
Camel Saga EIP
|
org.apache.camel.spi |
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
|
org.apache.camel.support |
Base classes that help to implement the camel API and are expected to be extended by the user
|
org.apache.camel.util |
Utility classes used by the core of Camel.
|
org.apache.camel.util.component |
Base classes and utilities for API based components
|
org.apache.camel.util.toolbox |
Toolbox classes to create commonly used Aggregation Strategies in a fluent manner.
|
Modifier and Type | Method and Description |
---|---|
Exchange |
Exchange.copy()
Creates a copy of the current message exchange so that it can be
forwarded to another destination
Notice this operation invokes copy(false)
|
Exchange |
Exchange.copy(boolean safeCopy)
Creates a copy of the current message exchange so that it can be
forwarded to another destination
|
Exchange |
Endpoint.createExchange()
Create a new exchange for communicating with this endpoint
|
Exchange |
Producer.createExchange()
Deprecated.
use
Endpoint.createExchange() - will be removed in Camel 3.0 |
Exchange |
Endpoint.createExchange(Exchange exchange)
Deprecated.
will be removed in Camel 3.0
|
Exchange |
Producer.createExchange(Exchange exchange)
Deprecated.
will be removed in Camel 3.0
|
Exchange |
Endpoint.createExchange(ExchangePattern pattern)
Create a new exchange for communicating with this endpoint
with the specified
ExchangePattern such as whether its going
to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange |
Exchange |
Producer.createExchange(ExchangePattern pattern)
Deprecated.
use
Endpoint.createExchange(ExchangePattern) - will be removed in Camel 3.0 |
Exchange |
Message.getExchange()
Returns the exchange this message is related to
|
Exchange |
RuntimeExchangeException.getExchange()
Returns the exchange which caused the exception
Can be null
|
Exchange |
CamelExchangeException.getExchange()
Returns the exchange which caused the exception
|
Exchange |
ExpressionEvaluationException.getExchange() |
Exchange |
ExpectedBodyTypeException.getExchange() |
Exchange |
PollingConsumer.receive()
Waits until a message is available and then returns it.
|
Exchange |
ConsumerTemplate.receive(Endpoint endpoint)
Receives from the endpoint, waiting until there is a response.
|
Exchange |
ConsumerTemplate.receive(Endpoint endpoint,
long timeout)
Receives from the endpoint, waiting until there is a response
or the timeout occurs
Important: See
ConsumerTemplate.doneUoW(Exchange) |
Exchange |
PollingConsumer.receive(long timeout)
Attempts to receive a message exchange, waiting up to the given timeout
to expire if a message is not yet available.
|
Exchange |
ConsumerTemplate.receive(String endpointUri)
Receives from the endpoint, waiting until there is a response
Important: See
ConsumerTemplate.doneUoW(Exchange) |
Exchange |
ConsumerTemplate.receive(String endpointUri,
long timeout)
Receives from the endpoint, waiting until there is a response
or the timeout occurs
Important: See
ConsumerTemplate.doneUoW(Exchange) |
Exchange |
PollingConsumer.receiveNoWait()
Attempts to receive a message exchange immediately without waiting and
returning null if a message exchange is not available yet.
|
Exchange |
ConsumerTemplate.receiveNoWait(Endpoint endpoint)
Receives from the endpoint, not waiting for a response if non exists.
|
Exchange |
ConsumerTemplate.receiveNoWait(String endpointUri)
Receives from the endpoint, not waiting for a response if non exists.
|
Exchange |
ProducerTemplate.request(Endpoint endpoint,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Uses an
ExchangePattern.InOut message exchange pattern. |
Exchange |
ProducerTemplate.request(String endpointUri,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Uses an
ExchangePattern.InOut message exchange pattern. |
Exchange |
FluentProducerTemplate.send()
Send to an endpoint (InOnly)
|
Exchange |
ProducerTemplate.send(Endpoint endpoint,
Exchange exchange)
Sends the exchange to the given endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(Exchange exchange)
Sends the exchange to the default endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(Processor processor)
Sends an exchange to the default endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(String endpointUri,
Exchange exchange)
Sends the exchange to the given endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(String endpointUri,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(String endpointUri,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(Endpoint endpoint,
Exchange exchange,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(Endpoint endpoint,
Processor processor,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint using a supplied processor.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(String endpointUri,
Exchange exchange,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(String endpointUri,
Processor processor,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint using a supplied processor.
|
Future<Exchange> |
FluentProducerTemplate.asyncSend()
Sends asynchronously to the given endpoint (InOnly).
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(Endpoint endpoint,
Exchange exchange)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(Endpoint endpoint,
Processor processor)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(String endpointUri,
Exchange exchange)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(String endpointUri,
Processor processor)
Sends an asynchronous exchange to the given endpoint.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(Endpoint endpoint,
Exchange exchange,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(String endpointUri,
Exchange exchange,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(Endpoint endpoint,
Exchange exchange)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(String endpointUri,
Exchange exchange)
Sends an asynchronous exchange to the given endpoint.
|
<T> T |
TypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value)
Converts the value to the specified type in the context of an exchange
Used when conversion requires extra information from the current
exchange (such as encoding).
|
StreamCache |
StreamCache.copy(Exchange exchange)
Create a copy of the stream.
|
static String |
CamelExchangeException.createExceptionMessage(String message,
Exchange exchange,
Throwable cause)
Creates an exception message with the provided details.
|
Exchange |
Endpoint.createExchange(Exchange exchange)
Deprecated.
will be removed in Camel 3.0
|
Exchange |
Producer.createExchange(Exchange exchange)
Deprecated.
will be removed in Camel 3.0
|
protected static String |
RuntimeExchangeException.createMessage(String message,
Exchange exchange) |
boolean |
AsyncProducerCallback.doInAsyncProducer(Producer producer,
AsyncProcessor asyncProducer,
Exchange exchange,
ExchangePattern exchangePattern,
AsyncCallback callback)
Performs operation on the given producer to send the given exchange.
|
T |
ProducerCallback.doInProducer(Producer producer,
Exchange exchange,
ExchangePattern exchangePattern)
Performs operation on the given producer to send the given exchange.
|
void |
ConsumerTemplate.doneUoW(Exchange exchange)
|
<T> T |
Expression.evaluate(Exchange exchange,
Class<T> type)
Returns the value of the expression on the given exchange
|
String |
RouteNode.getLabel(Exchange exchange)
Gets a label about this node to be used for tracing or tooling etc.
|
void |
Exchange.handoverCompletions(Exchange target)
Handover all the on completions from this exchange to the target exchange.
|
<T> T |
TypeConverter.mandatoryConvertTo(Class<T> type,
Exchange exchange,
Object value)
Converts the value to the specified type in the context of an exchange
Used when conversion requires extra information from the current
exchange (such as encoding).
|
boolean |
Predicate.matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this
exchange matches the predicate
|
String |
BinaryPredicate.matchesReturningFailureMessage(Exchange exchange)
Evaluates the predicate on the message exchange and returns null if this
exchange matches the predicate.
|
void |
Processor.process(Exchange exchange)
Processes the message exchange
|
boolean |
AsyncProcessor.process(Exchange exchange,
AsyncCallback callback)
Processes the message exchange.
|
protected static String |
NoSuchHeaderException.reason(Exchange exchange,
String propertyName) |
protected static String |
NoSuchPropertyException.reason(Exchange exchange,
String propertyName) |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
Exchange exchange)
Sends the exchange to the given endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(Exchange exchange)
Sends the exchange to the default endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
Exchange |
ProducerTemplate.send(String endpointUri,
Exchange exchange)
Sends the exchange to the given endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using getException() . |
<T> T |
TypeConverter.tryConvertTo(Class<T> type,
Exchange exchange,
Object value)
Tries to convert the value to the specified type in the context of an exchange,
returning null if not possible to convert.
|
FluentProducerTemplate |
FluentProducerTemplate.withExchange(Exchange exchange)
Set the exchange to use for send.
|
Modifier and Type | Method and Description |
---|---|
FluentProducerTemplate |
FluentProducerTemplate.withExchange(Supplier<Exchange> exchangeSupplier)
Set the exchangeSupplier which will be invoke to get the exchange to be
used for send.
|
Modifier and Type | Method and Description |
---|---|
void |
PerformanceCounter.completedExchange(Exchange exchange,
long time)
Executed when an
Exchange is complete. |
void |
PerformanceCounter.failedExchange(Exchange exchange)
Executed when an
Exchange failed. |
void |
PerformanceCounter.processExchange(Exchange exchange)
Executed when an
Exchange is about to be processed. |
Modifier and Type | Method and Description |
---|---|
Exchange |
AggregationStrategyClause.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
ExchangeBuilder.build()
Build up the exchange from the exchange builder
|
Exchange |
DefaultFluentProducerTemplate.send() |
Modifier and Type | Method and Description |
---|---|
Future<Exchange> |
DefaultFluentProducerTemplate.asyncSend() |
Modifier and Type | Method and Description |
---|---|
Exchange |
AggregationStrategyClause.aggregate(Exchange oldExchange,
Exchange newExchange) |
<T> T |
SimpleBuilder.evaluate(Exchange exchange,
Class<T> type) |
<T> T |
ValueBuilder.evaluate(Exchange exchange,
Class<T> type) |
boolean |
SimpleBuilder.matches(Exchange exchange) |
boolean |
BinaryPredicateSupport.matches(Exchange exchange) |
boolean |
PredicateClause.matches(Exchange exchange) |
boolean |
ValueBuilder.matches(Exchange exchange) |
protected abstract boolean |
BinaryPredicateSupport.matches(Exchange exchange,
Object leftValue,
Object rightValue) |
String |
BinaryPredicateSupport.matchesReturningFailureMessage(Exchange exchange) |
void |
ProcessClause.process(Exchange exchange) |
FluentProducerTemplate |
DefaultFluentProducerTemplate.withExchange(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
T |
AggregationStrategyClause.exchange(BiFunction<Exchange,Exchange,Exchange> function)
Define an aggregation strategy which targets the exchnage.
|
T |
AggregationStrategyClause.exchange(BiFunction<Exchange,Exchange,Exchange> function)
Define an aggregation strategy which targets the exchnage.
|
T |
AggregationStrategyClause.exchange(BiFunction<Exchange,Exchange,Exchange> function)
Define an aggregation strategy which targets the exchnage.
|
T |
ProcessClause.exchange(Consumer<Exchange> consumer)
Define a
Processor which targets the Exchange. |
T |
ExpressionClause.exchange(Function<Exchange,Object> function)
A functional expression of the exchange
|
T |
PredicateClause.exchange(Predicate<Exchange> predicate)
Define a
Predicate which targets the Exchange. |
static Expression |
ExpressionBuilder.exchangeExpression(Function<Exchange,Object> function)
Returns a functional expression for the exchange
|
FluentProducerTemplate |
DefaultFluentProducerTemplate.withExchange(Supplier<Exchange> exchangeSupplier) |
Modifier and Type | Method and Description |
---|---|
protected void |
XsltBuilder.configureTransformer(Transformer transformer,
Exchange exchange)
Configures the transformer with exchange specific parameters
|
ResultHandler |
FileResultHandlerFactory.createResult(Exchange exchange) |
ResultHandler |
StreamResultHandlerFactory.createResult(Exchange exchange) |
ResultHandler |
StringResultHandlerFactory.createResult(Exchange exchange) |
ResultHandler |
ResultHandlerFactory.createResult(Exchange exchange)
Creates the
ResultHandler to use |
ResultHandler |
DomResultHandlerFactory.createResult(Exchange exchange) |
protected Object |
XPathBuilder.doGetDocument(Exchange exchange,
Object body) |
protected Object |
XPathBuilder.doInEvaluateAs(XPathExpression xpathExpression,
Exchange exchange,
QName resultQName) |
protected Object |
XPathBuilder.evaluate(Exchange exchange) |
<T> T |
XPathBuilder.evaluate(Exchange exchange,
Class<T> type) |
protected Object |
XPathBuilder.evaluateAs(Exchange exchange,
QName resultQName)
Evaluates the expression as the given result type
|
protected Object |
XPathBuilder.getDocument(Exchange exchange,
Object body)
Strategy method to extract the document from the exchange.
|
protected Source |
XsltBuilder.getSource(Exchange exchange,
Object body)
|
protected boolean |
XsltBuilder.isInputStreamNeeded(Exchange exchange)
Checks whether we need an
InputStream to access the message body. |
protected boolean |
XPathBuilder.isInputStreamNeeded(Exchange exchange)
Checks whether we need an
InputStream to access the message body. |
protected boolean |
XPathBuilder.isInputStreamNeeded(Exchange exchange,
String headerName)
Checks whether we need an
InputStream to access the message
header. |
protected boolean |
XPathBuilder.isInputStreamNeededForObject(Exchange exchange,
Object obj)
Checks whether we need an
InputStream to access this object
Depending on the content in the object, we may not need to convert to
InputStream . |
boolean |
XPathBuilder.matches(Exchange exchange) |
void |
XsltBuilder.process(Exchange exchange) |
Constructor and Description |
---|
DefaultTransformErrorHandler(Exchange exchange) |
Constructor and Description |
---|
MessageVariableResolver(ThreadLocal<Exchange> exchange) |
Modifier and Type | Method and Description |
---|---|
protected Object |
AbstractCamelInvocationHandler.afterInvoke(Method method,
Exchange exchange,
ExchangePattern pattern,
boolean isFuture) |
protected MethodInfo |
BeanInfo.chooseMethod(Object pojo,
Exchange exchange,
String name)
Choose one of the available methods to invoke if we can match
the message body to the body parameter
|
static Object |
BeanConverter.convertTo(Class<?> type,
Exchange exchange,
Object value,
TypeConverterRegistry registry) |
MethodInvocation |
BeanInfo.createInvocation(Object pojo,
Exchange exchange) |
MethodInvocation |
MethodInfo.createMethodInvocation(Object pojo,
boolean hasParameters,
Exchange exchange) |
protected Object |
AbstractCamelInvocationHandler.doInvoke(Method method,
Exchange exchange) |
protected Object |
MethodInfo.invoke(Method mth,
Object pojo,
Object[] arguments,
Exchange exchange) |
void |
BeanInvocation.invoke(Object pojo,
Exchange exchange)
This causes us to invoke the endpoint Pojo using reflection.
|
void |
BeanProcessor.process(Exchange exchange) |
void |
AbstractBeanProcessor.process(Exchange exchange) |
boolean |
BeanProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
BeanProducer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
AbstractBeanProcessor.process(Exchange exchange,
AsyncCallback callback) |
Constructor and Description |
---|
AmbiguousMethodCallException(Exchange exchange,
Collection<MethodInfo> methods) |
MethodNotFoundException(Exchange exchange,
Class<?> type,
String methodName,
boolean isStaticMethod) |
MethodNotFoundException(Exchange exchange,
Object pojo,
String methodName) |
MethodNotFoundException(Exchange exchange,
Object pojo,
String methodName,
String postfix) |
Modifier and Type | Method and Description |
---|---|
void |
BindingEndpoint.pipelineBindingProcessor(Processor bindingProcessor,
Exchange exchange,
Processor delegateProcessor)
Deprecated.
Applies the
Binding processor to the given exchange before passing it on to the delegateProcessor (either a producer or consumer) |
void |
BindingProducer.process(Exchange exchange) |
void |
BindingConsumerProcessor.process(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
protected List<Exchange> |
BrowseEndpoint.createExchangeList() |
List<Exchange> |
BrowseEndpoint.getExchanges() |
Modifier and Type | Method and Description |
---|---|
protected void |
BrowseEndpoint.onExchange(Exchange exchange)
Invoked on a message exchange being sent by a producer
|
Modifier and Type | Method and Description |
---|---|
boolean |
ControlBusProducer.process(Exchange exchange,
AsyncCallback callback) |
protected void |
ControlBusProducer.processByAction(Exchange exchange) |
protected void |
ControlBusProducer.processByLanguage(Exchange exchange,
Language language) |
Modifier and Type | Method and Description |
---|---|
Exchange |
DataSetEndpoint.createExchange(long messageIndex)
Creates a message exchange for the given index in the
DataSet |
Modifier and Type | Method and Description |
---|---|
protected void |
DataSetSupport.applyHeaders(Exchange exchange,
long messageIndex)
Allows derived classes to add some custom headers for a given message
|
static void |
DataSetEndpoint.assertEquals(String description,
Object expected,
Object actual,
Exchange exchange) |
void |
DataSet.assertMessageExpected(DataSetEndpoint endpoint,
Exchange expected,
Exchange actual,
long messageIndex)
Asserts that the expected message has been received for the given index
|
void |
DataSetSupport.assertMessageExpected(DataSetEndpoint dataSetEndpoint,
Exchange expected,
Exchange actual,
long index) |
protected void |
DataSetEndpoint.assertMessageExpected(long index,
Exchange expected,
Exchange actual) |
protected void |
DataSetEndpoint.performAssertions(Exchange actual,
Exchange copy) |
void |
DataSet.populateMessage(Exchange exchange,
long messageIndex)
Populates a message exchange when using the DataSet as a source of messages
|
void |
DataSetSupport.populateMessage(Exchange exchange,
long messageIndex) |
Modifier and Type | Method and Description |
---|---|
void |
DirectProducer.process(Exchange exchange) |
boolean |
DirectProducer.process(Exchange exchange,
AsyncCallback callback) |
Constructor and Description |
---|
DirectConsumerNotAvailableException(String message,
Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
protected Exchange |
DirectVmProcessor.prepareExchange(Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
Modifier and Type | Method and Description |
---|---|
Object |
DirectVmConsumerExpression.evaluate(Exchange exchange) |
protected DirectVmConsumer |
DirectVmBlockingProducer.getConsumer(Exchange exchange) |
protected Exchange |
DirectVmProcessor.prepareExchange(Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
void |
DirectVmBlockingProducer.process(Exchange exchange) |
boolean |
DirectVmBlockingProducer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
DirectVmProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
DirectVmProducer.process(Exchange exchange,
AsyncCallback callback) |
Constructor and Description |
---|
DirectVmConsumerNotAvailableException(String message,
Exchange exchange) |
Modifier and Type | Field and Description |
---|---|
protected Comparator<Exchange> |
GenericFileEndpoint.sortBy |
Modifier and Type | Method and Description |
---|---|
Exchange |
FileEndpoint.createExchange(GenericFile<File> file) |
abstract Exchange |
GenericFileEndpoint.createExchange(GenericFile<T> file) |
Exchange |
GenericFilePollingConsumer.receive() |
Exchange |
GenericFilePollingConsumer.receive(long timeout) |
Exchange |
GenericFilePollingConsumer.receiveNoWait() |
Modifier and Type | Method and Description |
---|---|
List<Exchange> |
GenericFileEndpoint.getExchanges()
This implementation will not load the file content.
|
Comparator<Exchange> |
GenericFileEndpoint.getSortBy() |
static Comparator<Exchange> |
GenericFileDefaultSorter.sortByFileLanguage(CamelContext context,
String expression,
boolean reverse)
Returns a new sory by file language expression
|
static Comparator<Exchange> |
GenericFileDefaultSorter.sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase)
Returns a new sory by file language expression
|
static Comparator<Exchange> |
GenericFileDefaultSorter.sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase,
Comparator<Exchange> nested)
Returns a new sort by file language expression
|
Modifier and Type | Method and Description |
---|---|
void |
GenericFileProcessStrategy.abort(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Called when a begin is aborted, for example to release any resources which may have
been acquired during the
GenericFileProcessStrategy.begin(GenericFileOperations, GenericFileEndpoint, org.apache.camel.Exchange, GenericFile)
operation. |
boolean |
GenericFileExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Acquires exclusive read lock to the file.
|
boolean |
GenericFileProcessStrategy.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Called when work is about to begin on this file.
|
void |
GenericFile.bindToExchange(Exchange exchange)
Bind this GenericFile to an Exchange
|
void |
GenericFile.bindToExchange(Exchange exchange,
boolean isProbeContentTypeFromEndpoint)
Bind this GenericFile to an Exchange
|
void |
GenericFileProcessStrategy.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after
successful processing
|
void |
GenericFileEndpoint.configureExchange(Exchange exchange)
Set up the exchange properties with the options of the file endpoint
|
static Object |
GenericFileConverter.convertTo(Class<?> type,
Exchange exchange,
Object value,
TypeConverterRegistry registry) |
String |
GenericFileProducer.createFileName(Exchange exchange) |
String |
GenericFileProducer.createTempFileName(Exchange exchange,
String fileName) |
protected boolean |
GenericFileConsumer.customProcessExchange(Exchange exchange,
Processor processor)
Processes the exchange using a custom processor.
|
static InputStream |
GenericFileConverter.genericFileToInputStream(GenericFile<?> file,
Exchange exchange) |
static Serializable |
GenericFileConverter.genericFileToSerializable(GenericFile<?> file,
Exchange exchange) |
static String |
GenericFileConverter.genericFileToString(GenericFile<?> file,
Exchange exchange) |
protected void |
GenericFileOnCompletion.handleDoneFile(Exchange exchange) |
protected void |
GenericFileOnCompletion.handleException(String message,
Exchange exchange,
Throwable t) |
void |
GenericFileProducer.handleFailedWrite(Exchange exchange,
Exception exception)
If we fail writing out a file, we will call this method.
|
protected boolean |
GenericFileConsumer.ignoreCannotRetrieveFile(String name,
Exchange exchange,
Exception cause)
Whether to ignore if the file cannot be retrieved.
|
void |
GenericFileDefaultBinding.loadContent(Exchange exchange,
GenericFile<?> file) |
void |
FileBinding.loadContent(Exchange exchange,
GenericFile<?> file) |
void |
GenericFileBinding.loadContent(Exchange exchange,
GenericFile<?> file)
Ensures the content is loaded from the file into memory
|
void |
GenericFileOnCompletion.onComplete(Exchange exchange) |
protected void |
GenericFileOnCompletion.onCompletion(Exchange exchange) |
void |
GenericFileOnCompletion.onFailure(Exchange exchange) |
void |
GenericFileProducer.postWriteCheck(Exchange exchange)
Perform any actions that need to occur after we are done such as disconnecting.
|
void |
GenericFilePollingConsumer.process(Exchange exchange) |
void |
GenericFileProducer.process(Exchange exchange) |
protected boolean |
GenericFileConsumer.processExchange(Exchange exchange)
Processes the exchange
|
protected void |
GenericFileProducer.processExchange(Exchange exchange,
String target)
Perform the work to process the fileExchange
|
protected void |
GenericFileOnCompletion.processStrategyCommit(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
Strategy when the file was processed and a commit should be executed.
|
protected void |
GenericFileOnCompletion.processStrategyRollback(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
Strategy when the file was not processed and a rollback should be executed.
|
void |
GenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Releases the exclusive read lock granted by the acquireExclusiveReadLock method due an abort operation (acquireExclusiveReadLock returned false).
|
void |
GenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Releases the exclusive read lock granted by the acquireExclusiveReadLock method due a commit operation (Exchange processing succeeded)
|
void |
GenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Releases the exclusive read lock granted by the acquireExclusiveReadLock method due a rollback operation (Exchange processing failed)
|
void |
FileOperations.releaseRetrievedFileResources(Exchange exchange) |
void |
GenericFileOperations.releaseRetrievedFileResources(Exchange exchange)
Releases the resources consumed by a retrieved file
|
boolean |
FileOperations.retrieveFile(String name,
Exchange exchange,
long size) |
boolean |
GenericFileOperations.retrieveFile(String name,
Exchange exchange,
long size)
Retrieves the file
|
void |
GenericFileProcessStrategy.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after
unsuccessful processing
|
boolean |
FileOperations.storeFile(String fileName,
Exchange exchange,
long size) |
boolean |
GenericFileOperations.storeFile(String name,
Exchange exchange,
long size)
Stores the content as a new remote file (upload)
|
void |
GenericFileProducer.writeFile(Exchange exchange,
String fileName) |
Modifier and Type | Method and Description |
---|---|
protected void |
GenericFileConsumer.removeExcessiveInProgressFiles(Deque<Exchange> exchanges,
int limit)
Drain any in progress files as we are done with this batch
|
void |
GenericFileEndpoint.setSortBy(Comparator<Exchange> sortBy)
Built-in sort by using the File Language.
|
static Comparator<Exchange> |
GenericFileDefaultSorter.sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase,
Comparator<Exchange> nested)
Returns a new sort by file language expression
|
Modifier and Type | Method and Description |
---|---|
void |
GenericFileProcessStrategySupport.abort(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
boolean |
FileIdempotentRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileLockExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileChangedExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileIdempotentRenameRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileIdempotentChangedRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
MarkerFileExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
GenericFileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
boolean |
GenericFileRenameProcessStrategy.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
boolean |
GenericFileDeleteProcessStrategy.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
boolean |
GenericFileProcessStrategySupport.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileRenameProcessStrategy.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileDeleteProcessStrategy.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileProcessStrategySupport.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
protected void |
GenericFileProcessStrategySupport.deleteLocalWorkFile(Exchange exchange) |
protected void |
FileLockExclusiveReadLockStrategy.doReleaseExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
protected void |
MarkerFileExclusiveReadLockStrategy.doReleaseExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
MarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
GenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
void |
FileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
MarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
GenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
void |
FileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
MarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
GenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
GenericFile<T> |
GenericFileRenamer.renameFile(Exchange exchange,
GenericFile<T> file)
Renames the given file
|
GenericFile<T> |
GenericFileExpressionRenamer.renameFile(Exchange exchange,
GenericFile<T> file) |
void |
GenericFileRenameProcessStrategy.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileDeleteProcessStrategy.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileProcessStrategySupport.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
Modifier and Type | Method and Description |
---|---|
void |
LanguageProducer.process(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
boolean |
LogProducer.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
Exchange |
MockEndpoint.assertExchangeReceived(int index)
Asserts that the given index of message is received (starting at zero)
|
Modifier and Type | Method and Description |
---|---|
List<Exchange> |
MockEndpoint.getExchanges() |
List<Exchange> |
MockEndpoint.getReceivedExchanges() |
Modifier and Type | Method and Description |
---|---|
protected void |
MockEndpoint.addReceivedExchange(Exchange copy)
Adds the received exchange.
|
protected void |
AssertionClause.applyAssertionOn(MockEndpoint endpoint,
int index,
Exchange exchange)
Performs any assertions on the given exchange
|
void |
MockEndpoint.handle(Exchange exchange)
Handles the incoming exchange.
|
protected boolean |
TimeClause.matches(Exchange exchange,
Object leftValue,
Object rightValue) |
protected void |
MockEndpoint.onExchange(Exchange exchange) |
protected void |
MockEndpoint.performAssertions(Exchange exchange,
Exchange copy)
Performs the assertions on the incoming exchange.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RestProducer.prepareExchange(Exchange exchange) |
void |
RestApiProducer.process(Exchange exchange) |
boolean |
RestProducerBindingProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RestProducer.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
boolean |
SagaProducer.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Field and Description |
---|---|
protected BlockingQueueFactory<Exchange> |
SedaComponent.defaultQueueFactory |
protected Collection<Exchange> |
CollectionProducer.queue
Deprecated.
|
protected BlockingQueue<Exchange> |
SedaProducer.queue
Deprecated.
Better make use of the
SedaEndpoint.getQueue() API which delivers the accurate reference to the queue currently being used. |
Modifier and Type | Method and Description |
---|---|
protected Exchange |
SedaProducer.prepareCopy(Exchange exchange,
boolean handover) |
protected Exchange |
SedaConsumer.prepareExchange(Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
Exchange |
SedaPollingConsumer.receive() |
Exchange |
SedaPollingConsumer.receive(long timeout) |
Exchange |
SedaPollingConsumer.receiveNoWait() |
Modifier and Type | Method and Description |
---|---|
protected BlockingQueue<Exchange> |
SedaEndpoint.createQueue() |
BlockingQueueFactory<Exchange> |
SedaComponent.getDefaultQueueFactory() |
List<Exchange> |
SedaEndpoint.getExchanges()
Returns the current pending exchanges
|
BlockingQueue<Exchange> |
SedaEndpoint.getQueue() |
BlockingQueue<Exchange> |
QueueReference.getQueue()
Gets the queue
|
Modifier and Type | Method and Description |
---|---|
protected void |
SedaProducer.addToQueue(Exchange exchange,
boolean copy)
Strategy method for adding the exchange to the queue.
|
protected Exchange |
SedaProducer.prepareCopy(Exchange exchange,
boolean handover) |
protected Exchange |
SedaConsumer.prepareExchange(Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
boolean |
CollectionProducer.process(Exchange exchange,
AsyncCallback callback)
Deprecated.
|
boolean |
SedaProducer.process(Exchange exchange,
AsyncCallback callback) |
protected void |
SedaConsumer.sendToConsumers(Exchange exchange)
Send the given
Exchange to the consumer(s). |
Modifier and Type | Method and Description |
---|---|
protected SedaEndpoint |
SedaComponent.createEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers) |
protected SedaEndpoint |
SedaComponent.createEndpoint(String endpointUri,
Component component,
BlockingQueueFactory<Exchange> queueFactory,
int concurrentConsumers) |
QueueReference |
SedaComponent.getOrCreateQueue(SedaEndpoint endpoint,
Integer size,
Boolean multipleConsumers,
BlockingQueueFactory<Exchange> customQueueFactory) |
QueueReference |
SedaComponent.registerQueue(SedaEndpoint endpoint,
BlockingQueue<Exchange> queue) |
void |
SedaComponent.setDefaultQueueFactory(BlockingQueueFactory<Exchange> defaultQueueFactory)
Sets the default queue factory.
|
void |
SedaEndpoint.setQueue(BlockingQueue<Exchange> queue)
Define the queue instance which will be used by the endpoint.
|
Constructor and Description |
---|
SedaConsumerNotAvailableException(String message,
Exchange exchange) |
Constructor and Description |
---|
CollectionProducer(Endpoint endpoint,
Collection<Exchange> queue)
Deprecated.
|
SedaEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue) |
SedaEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers) |
SedaEndpoint(String endpointUri,
Component component,
BlockingQueueFactory<Exchange> queueFactory,
int concurrentConsumers) |
SedaProducer(SedaEndpoint endpoint,
BlockingQueue<Exchange> queue,
WaitForTaskToComplete waitForTaskToComplete,
long timeout)
Deprecated.
Use
the other constructor . |
SedaProducer(SedaEndpoint endpoint,
BlockingQueue<Exchange> queue,
WaitForTaskToComplete waitForTaskToComplete,
long timeout,
boolean blockWhenFull,
long offerTimeout)
Deprecated.
Use
the other constructor . |
Modifier and Type | Method and Description |
---|---|
boolean |
StubProducer.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
protected StubEndpoint |
StubComponent.createEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers) |
protected StubEndpoint |
StubComponent.createEndpoint(String endpointUri,
Component component,
BlockingQueueFactory<Exchange> queueFactory,
int concurrentConsumers) |
Constructor and Description |
---|
StubEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue) |
StubEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers) |
StubEndpoint(String endpointUri,
Component component,
BlockingQueueFactory<Exchange> queueFactory,
int concurrentConsumers) |
Modifier and Type | Method and Description |
---|---|
protected Object |
TestEndpoint.getInBody(Exchange exchange)
This method allows us to convert or coerce the expected message body into some other type
|
Modifier and Type | Method and Description |
---|---|
boolean |
ValidatorProducer.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
protected Exchange |
VmConsumer.prepareExchange(Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
Modifier and Type | Method and Description |
---|---|
protected Exchange |
VmConsumer.prepareExchange(Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
Modifier and Type | Method and Description |
---|---|
protected VmEndpoint |
VmComponent.createEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers) |
protected VmEndpoint |
VmComponent.createEndpoint(String endpointUri,
Component component,
BlockingQueueFactory<Exchange> queueFactory,
int concurrentConsumers) |
Constructor and Description |
---|
VmEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue) |
VmEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers) |
VmEndpoint(String endpointUri,
Component component,
BlockingQueueFactory<Exchange> queueFactory,
int concurrentConsumers) |
Modifier and Type | Method and Description |
---|---|
protected void |
XsltEndpoint.onExchange(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
static Object |
NIOConverterOptimised.convertTo(Class<?> type,
Exchange exchange,
Object value) |
static Object |
ObjectConverterOptimised.convertTo(Class<?> type,
Exchange exchange,
Object value) |
static Object |
IOConverterOptimised.convertTo(Class<?> type,
Exchange exchange,
Object value) |
static Object |
TimePatternConverterOptimised.convertTo(Class<?> type,
Exchange exchange,
Object value) |
static String |
IOConverter.getCharsetName(Exchange exchange)
Deprecated.
|
static String |
IOConverter.getCharsetName(Exchange exchange,
boolean useDefault)
Deprecated.
|
static byte[] |
IOConverter.toByteArray(BufferedReader reader,
Exchange exchange) |
static byte[] |
IOConverter.toByteArray(Reader reader,
Exchange exchange) |
static byte[] |
IOConverter.toByteArray(String value,
Exchange exchange) |
static ByteBuffer |
NIOConverter.toByteBuffer(String value,
Exchange exchange) |
static Class<?> |
ObjectConverter.toClass(Object value,
Exchange exchange)
Returns the converted value, or null if the value is null
|
static InputStream |
IOConverter.toInputStream(BufferedReader buffer,
Exchange exchange) |
static InputStream |
IOConverter.toInputStream(StringBuffer buffer,
Exchange exchange) |
static InputStream |
IOConverter.toInputStream(StringBuilder builder,
Exchange exchange) |
static InputStream |
IOConverter.toInputStream(String text,
Exchange exchange) |
static ObjectInput |
IOConverter.toObjectInput(InputStream stream,
Exchange exchange) |
static Reader |
IOConverter.toReader(byte[] data,
Exchange exchange) |
static BufferedReader |
IOConverter.toReader(File file,
Exchange exchange) |
static Reader |
IOConverter.toReader(InputStream in,
Exchange exchange) |
static String |
IOConverter.toString(byte[] data,
Exchange exchange) |
static String |
IOConverter.toString(ByteArrayOutputStream os,
Exchange exchange) |
static String |
NIOConverter.toString(ByteBuffer buffer,
Exchange exchange) |
static String |
IOConverter.toString(File file,
Exchange exchange) |
static String |
IOConverter.toString(InputStream in,
Exchange exchange) |
static String |
IOConverter.toString(URL url,
Exchange exchange) |
static BufferedWriter |
IOConverter.toWriter(File file,
Exchange exchange) |
static Writer |
IOConverter.toWriter(OutputStream out,
Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
InputStream |
StaxConverter.createInputStream(XMLStreamReader reader,
Exchange exchange) |
Reader |
StaxConverter.createReader(XMLStreamReader reader,
Exchange exchange) |
XMLEventReader |
StaxConverter.createXMLEventReader(File file,
Exchange exchange) |
XMLEventReader |
StaxConverter.createXMLEventReader(InputStream in,
Exchange exchange) |
XMLEventWriter |
StaxConverter.createXMLEventWriter(OutputStream out,
Exchange exchange) |
XMLStreamReader |
StaxConverter.createXMLStreamReader(File file,
Exchange exchange) |
XMLStreamReader |
StaxConverter.createXMLStreamReader(InputStream in,
Exchange exchange) |
XMLStreamWriter |
StaxConverter.createXMLStreamWriter(OutputStream outputStream,
Exchange exchange) |
DocumentBuilderFactory |
XmlConverter.getDocumentBuilderFactory(Exchange exchange) |
byte[] |
DomConverter.toByteArray(NodeList nodeList,
Exchange exchange) |
byte[] |
XmlConverter.toByteArray(Source source,
Exchange exchange)
Converts the given input Source into bytes
|
Document |
XmlConverter.toDOMDocument(byte[] data,
Exchange exchange)
Converts the given data to a DOM document
|
Document |
XmlConverter.toDOMDocument(File file,
Exchange exchange)
Converts the given
File to a DOM document |
Document |
XmlConverter.toDOMDocument(InputSource in,
Exchange exchange)
Converts the given
InputSource to a DOM document |
Document |
XmlConverter.toDOMDocument(InputStream in,
Exchange exchange)
Converts the given
InputStream to a DOM document |
Document |
XmlConverter.toDOMDocument(Reader in,
Exchange exchange)
Converts the given
Reader to a DOM document |
Document |
XmlConverter.toDOMDocument(String text,
Exchange exchange)
Converts the given
String to a DOM document |
DOMSource |
XmlConverter.toDOMSource(File file,
Exchange exchange) |
DOMSource |
XmlConverter.toDOMSource(InputStream is,
Exchange exchange) |
DOMSource |
XmlConverter.toDOMSource(Source source,
Exchange exchange)
Converts the source instance to a
DOMSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
DOMSource |
XmlConverter.toDOMSourceFromStream(StreamSource source,
Exchange exchange) |
InputSource |
XmlConverter.toInputSource(File file,
Exchange exchange) |
InputSource |
XmlConverter.toInputSource(InputStream is,
Exchange exchange) |
InputStream |
XmlConverter.toInputStream(Document dom,
Exchange exchange) |
InputStream |
XmlConverter.toInputStream(DOMSource source,
Exchange exchange) |
InputStream |
DomConverter.toInputStream(NodeList nodeList,
Exchange exchange) |
Reader |
XmlConverter.toReaderFromSource(Source src,
Exchange exchange) |
SAXSource |
XmlConverter.toSAXSource(byte[] in,
Exchange exchange)
Converts the source instance to a
SAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
SAXSource |
XmlConverter.toSAXSource(File file,
Exchange exchange)
Converts the source instance to a
SAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
SAXSource |
XmlConverter.toSAXSource(InputStream source,
Exchange exchange)
Converts the source instance to a
SAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
SAXSource |
XmlConverter.toSAXSource(Source source,
Exchange exchange)
Converts the source instance to a
SAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
SAXSource |
XmlConverter.toSAXSource(String source,
Exchange exchange)
Converts the source instance to a
SAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
SAXSource |
XmlConverter.toSAXSourceFromDOM(DOMSource source,
Exchange exchange) |
SAXSource |
XmlConverter.toSAXSourceFromStAX(StAXSource source,
Exchange exchange) |
SAXSource |
XmlConverter.toSAXSourceFromStream(StreamSource source,
Exchange exchange) |
StAXSource |
XmlConverter.toStAXSource(byte[] in,
Exchange exchange)
Converts the source instance to a
StAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
StAXSource |
XmlConverter.toStAXSource(File file,
Exchange exchange)
Converts the source instance to a
StAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
StAXSource |
XmlConverter.toStAXSource(InputStream source,
Exchange exchange)
Converts the source instance to a
StAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
StAXSource |
XmlConverter.toStAXSource(String source,
Exchange exchange)
Converts the source instance to a
StAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
StreamSource |
XmlConverter.toStreamSource(byte[] in,
Exchange exchange) |
StreamSource |
XmlConverter.toStreamSource(ByteBuffer in,
Exchange exchange) |
StreamSource |
XmlConverter.toStreamSource(Source source,
Exchange exchange) |
StreamSource |
XmlConverter.toStreamSourceFromDOM(DOMSource source,
Exchange exchange) |
StreamSource |
XmlConverter.toStreamSourceFromSAX(SAXSource source,
Exchange exchange) |
StreamSource |
XmlConverter.toStreamSourceFromStAX(StAXSource source,
Exchange exchange) |
String |
XmlConverter.toString(Node node,
Exchange exchange)
Converts the given input Node into text
|
String |
DomConverter.toString(NodeList nodeList,
Exchange exchange) |
String |
XmlConverter.toString(Source source,
Exchange exchange)
Converts the given input Source into text
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
StreamCacheConverter.convertToByteArray(StreamCache cache,
Exchange exchange) |
static ByteBuffer |
StreamCacheConverter.convertToByteBuffer(StreamCache cache,
Exchange exchange) |
static Serializable |
StreamCacheConverter.convertToSerializable(StreamCache cache,
Exchange exchange) |
static StreamCache |
StreamCacheConverter.convertToStreamCache(ByteArrayInputStream stream,
Exchange exchange) |
static StreamCache |
StreamCacheConverter.convertToStreamCache(CachedOutputStream cos,
Exchange exchange) |
static StreamCache |
StreamCacheConverter.convertToStreamCache(InputStream stream,
Exchange exchange) |
static StreamCache |
StreamCacheConverter.convertToStreamCache(Reader reader,
Exchange exchange) |
static StreamCache |
StreamCacheConverter.convertToStreamCache(SAXSource source,
Exchange exchange) |
static StreamCache |
StreamCacheConverter.convertToStreamCache(StreamSource source,
Exchange exchange) |
StreamCache |
InputStreamCache.copy(Exchange exchange) |
StreamCache |
StreamSourceCache.copy(Exchange exchange) |
StreamCache |
FileInputStreamCache.copy(Exchange exchange) |
StreamCache |
ByteArrayInputStreamCache.copy(Exchange exchange) |
StreamCache |
ReaderCache.copy(Exchange exchange) |
StreamCache |
SourceCache.copy(Exchange exchange) |
static OutputStreamBuilder |
OutputStreamBuilder.withExchange(Exchange exchange)
Creates a new OutputStreamBuilder with the current exchange
Use the
OutputStreamBuilder.build() when writing to the stream is finished,
and you need the result of this operation. |
Constructor and Description |
---|
CachedOutputStream(Exchange exchange) |
CachedOutputStream(Exchange exchange,
boolean closedOnCompletion) |
StreamSourceCache(StreamSource source,
Exchange exchange) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultExchange
A default implementation of
Exchange |
Modifier and Type | Method and Description |
---|---|
Exchange |
DefaultExchange.copy() |
Exchange |
DefaultExchange.copy(boolean safeCopy) |
Exchange |
SynchronousDelegateProducer.createExchange() |
Exchange |
DefaultEndpoint.createExchange() |
Exchange |
InterceptSendToEndpointProcessor.createExchange() |
Exchange |
DeferProducer.createExchange() |
Exchange |
DefaultProducer.createExchange() |
Exchange |
InterceptSendToEndpoint.createExchange() |
Exchange |
SynchronousDelegateProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
DefaultEndpoint.createExchange(Exchange exchange) |
Exchange |
InterceptSendToEndpointProcessor.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
DeferProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
DefaultProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
InterceptSendToEndpoint.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
SynchronousDelegateProducer.createExchange(ExchangePattern pattern) |
Exchange |
DefaultEndpoint.createExchange(ExchangePattern pattern) |
Exchange |
InterceptSendToEndpointProcessor.createExchange(ExchangePattern pattern) |
Exchange |
DeferProducer.createExchange(ExchangePattern pattern) |
Exchange |
DefaultProducer.createExchange(ExchangePattern pattern) |
Exchange |
InterceptSendToEndpoint.createExchange(ExchangePattern pattern) |
Exchange |
DefaultClaimCheckRepository.get(String key) |
Exchange |
DefaultClaimCheckRepository.getAndRemove(String key) |
Exchange |
MessageSupport.getExchange() |
Exchange |
DefaultClaimCheckRepository.pop() |
Exchange |
EventDrivenPollingConsumer.receive() |
Exchange |
ProcessorPollingConsumer.receive() |
Exchange |
ConsumerCache.receive(Endpoint endpoint) |
Exchange |
DefaultConsumerTemplate.receive(Endpoint endpoint) |
Exchange |
ConsumerCache.receive(Endpoint endpoint,
long timeout) |
Exchange |
DefaultConsumerTemplate.receive(Endpoint endpoint,
long timeout) |
Exchange |
EventDrivenPollingConsumer.receive(long timeout) |
Exchange |
ProcessorPollingConsumer.receive(long timeout) |
Exchange |
DefaultConsumerTemplate.receive(String endpointUri) |
Exchange |
DefaultConsumerTemplate.receive(String endpointUri,
long timeout) |
Exchange |
EventDrivenPollingConsumer.receiveNoWait() |
Exchange |
ProcessorPollingConsumer.receiveNoWait() |
Exchange |
ConsumerCache.receiveNoWait(Endpoint endpoint) |
Exchange |
DefaultConsumerTemplate.receiveNoWait(Endpoint endpoint) |
Exchange |
DefaultConsumerTemplate.receiveNoWait(String endpointUri) |
Exchange |
DefaultProducerTemplate.request(Endpoint endpoint,
Processor processor) |
Exchange |
DefaultProducerTemplate.request(String endpoint,
Processor processor) |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
Exchange exchange) |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor) |
Exchange |
ProducerCache.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor) |
Exchange |
ProducerCache.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor)
Sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
Processor processor) |
Exchange |
ProducerCache.send(Endpoint endpoint,
Processor processor)
Sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Exchange |
DefaultProducerTemplate.send(Exchange exchange) |
Exchange |
DefaultProducerTemplate.send(Processor processor) |
Exchange |
DefaultProducerTemplate.send(String endpointUri,
Exchange exchange) |
Exchange |
DefaultProducerTemplate.send(String endpointUri,
ExchangePattern pattern,
Processor processor) |
Exchange |
DefaultProducerTemplate.send(String endpointUri,
Processor processor) |
protected Exchange |
ProducerCache.sendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncCallback(Endpoint endpoint,
Exchange exchange,
Synchronization onCompletion) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncCallback(Endpoint endpoint,
Processor processor,
Synchronization onCompletion) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncCallback(String uri,
Exchange exchange,
Synchronization onCompletion) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncCallback(String uri,
Processor processor,
Synchronization onCompletion) |
protected CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncRequest(Endpoint endpoint,
Processor processor,
Processor resultProcessor) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(Endpoint endpoint,
Exchange exchange) |
protected CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor) |
CompletableFuture<Exchange> |
ProducerCache.asyncSend(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(Endpoint endpoint,
Processor processor) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(String uri,
Exchange exchange) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(String uri,
Processor processor) |
protected CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange inExchange) |
CompletableFuture<Exchange> |
ProducerCache.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
protected Function<Exchange,Exchange> |
DefaultProducerTemplate.createCompletionFunction(Synchronization onCompletion) |
protected Function<Exchange,Exchange> |
DefaultProducerTemplate.createCompletionFunction(Synchronization onCompletion) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultInflightRepository.add(Exchange exchange) |
void |
DefaultInflightRepository.add(Exchange exchange,
String routeId) |
boolean |
DefaultClaimCheckRepository.add(String key,
Exchange exchange) |
void |
BreakpointSupport.afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
long timeTaken) |
boolean |
DefaultDebugger.afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
long timeTaken) |
void |
MDCUnitOfWork.afterProcess(Processor processor,
Exchange exchange,
AsyncCallback callback,
boolean doneSync) |
void |
DefaultUnitOfWork.afterProcess(Processor processor,
Exchange exchange,
AsyncCallback callback,
boolean doneSync) |
void |
DefaultUnitOfWork.afterRoute(Exchange exchange,
Route route) |
boolean |
DefaultHeaderFilterStrategy.applyFilterToCamelHeaders(String headerName,
Object headerValue,
Exchange exchange) |
boolean |
DefaultHeaderFilterStrategy.applyFilterToExternalHeaders(String headerName,
Object headerValue,
Exchange exchange) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncCallback(Endpoint endpoint,
Exchange exchange,
Synchronization onCompletion) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncCallback(String uri,
Exchange exchange,
Synchronization onCompletion) |
protected boolean |
ProducerCache.asyncDispatchExchange(Endpoint endpoint,
Producer producer,
Processor resultProcessor,
Exchange exchange,
AsyncCallback callback) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(Endpoint endpoint,
Exchange exchange) |
CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(String uri,
Exchange exchange) |
protected CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange inExchange) |
CompletableFuture<Exchange> |
ProducerCache.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
void |
DefaultAsyncProcessorAwaitManager.await(Exchange exchange,
CountDownLatch latch) |
void |
BreakpointSupport.beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition) |
boolean |
DefaultDebugger.beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition) |
AsyncCallback |
MDCUnitOfWork.beforeProcess(Processor processor,
Exchange exchange,
AsyncCallback callback) |
AsyncCallback |
DefaultUnitOfWork.beforeProcess(Processor processor,
Exchange exchange,
AsyncCallback callback) |
void |
DefaultUnitOfWork.beforeRoute(Exchange exchange,
Route route) |
void |
DefaultUnitOfWork.beginSubUnitOfWork(Exchange exchange) |
StreamCache |
DefaultStreamCachingStrategy.cache(Exchange exchange) |
void |
DefaultAsyncProcessorAwaitManager.countDown(Exchange exchange,
CountDownLatch latch) |
UnitOfWork |
DefaultUnitOfWork.createChildUnitOfWork(Exchange childExchange) |
Exchange |
SynchronousDelegateProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
DefaultEndpoint.createExchange(Exchange exchange) |
Exchange |
InterceptSendToEndpointProcessor.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
DeferProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
DefaultProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
InterceptSendToEndpoint.createExchange(Exchange exchange)
Deprecated.
|
UnitOfWork |
DefaultUnitOfWorkFactory.createUnitOfWork(Exchange exchange) |
UnitOfWork |
DefaultConsumer.createUoW(Exchange exchange)
If the consumer needs to defer done the
UnitOfWork on
the processed Exchange then this method should be use to create and start
the UnitOfWork on the exchange. |
boolean |
ProducerCache.doInAsyncProducer(Endpoint endpoint,
Exchange exchange,
ExchangePattern pattern,
AsyncCallback callback,
AsyncProducerCallback producerCallback)
Sends an exchange to an endpoint using a supplied callback supporting the asynchronous routing engine.
|
<T> T |
ProducerCache.doInProducer(Endpoint endpoint,
Exchange exchange,
ExchangePattern pattern,
ProducerCallback<T> callback)
Sends an exchange to an endpoint using a supplied callback, using the synchronous processing.
|
void |
DefaultUnitOfWork.done(Exchange exchange) |
void |
DefaultConsumer.doneUoW(Exchange exchange)
If the consumer needs to defer done the
UnitOfWork on
the processed Exchange then this method should be executed when the consumer
is finished processing the message. |
void |
DefaultConsumerTemplate.doneUoW(Exchange exchange) |
void |
DefaultUnitOfWork.endSubUnitOfWork(Exchange exchange) |
protected boolean |
DefaultHeaderFilterStrategy.extendedFilter(HeaderFilterStrategy.Direction direction,
String key,
Object value,
Exchange exchange) |
protected Object |
DefaultProducerTemplate.extractResultBody(Exchange result) |
protected Object |
DefaultConsumerTemplate.extractResultBody(Exchange result)
Extracts the body from the given result.
|
protected Object |
DefaultProducerTemplate.extractResultBody(Exchange result,
ExchangePattern pattern) |
String |
DoCatchRouteNode.getLabel(Exchange exchange) |
String |
DoFinallyRouteNode.getLabel(Exchange exchange) |
String |
OnCompletionRouteNode.getLabel(Exchange exchange) |
String |
AggregateRouteNode.getLabel(Exchange exchange) |
String |
OnExceptionRouteNode.getLabel(Exchange exchange) |
String |
DefaultRouteNode.getLabel(Exchange exchange) |
protected Processor |
HeaderSelectorProducer.getProcessor(Exchange exchange) |
protected abstract Processor |
BaseSelectorProducer.getProcessor(Exchange exchange)
Determine the processor to use to handle the exchange.
|
void |
BridgeExceptionHandlerToErrorHandler.handleException(String message,
Exchange exchange,
Throwable exception) |
void |
DefaultExchange.handoverCompletions(Exchange target) |
void |
DefaultUnitOfWork.handoverSynchronization(Exchange target) |
void |
DefaultUnitOfWork.handoverSynchronization(Exchange target,
Predicate<Synchronization> filter) |
void |
DefaultAsyncProcessorAwaitManager.interrupt(Exchange exchange) |
static DefaultExchangeHolder |
DefaultExchangeHolder.marshal(Exchange exchange)
Creates a payload object with the information from the given exchange.
|
static DefaultExchangeHolder |
DefaultExchangeHolder.marshal(Exchange exchange,
boolean includeProperties)
Creates a payload object with the information from the given exchange.
|
static DefaultExchangeHolder |
DefaultExchangeHolder.marshal(Exchange exchange,
boolean includeProperties,
boolean allowSerializedHeaders)
Creates a payload object with the information from the given exchange.
|
void |
ZipDataFormat.marshal(Exchange exchange,
Object graph,
OutputStream stream) |
void |
SerializationDataFormat.marshal(Exchange exchange,
Object graph,
OutputStream stream) |
void |
StringDataFormat.marshal(Exchange exchange,
Object graph,
OutputStream stream) |
void |
GzipDataFormat.marshal(Exchange exchange,
Object graph,
OutputStream stream) |
boolean |
ConditionSupport.matchEvent(Exchange exchange,
EventObject event) |
boolean |
ConditionSupport.matchProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition) |
UnitOfWork |
MDCUnitOfWork.newInstance(Exchange exchange) |
protected void |
DefaultDebugger.onAfterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
long timeTaken,
Breakpoint breakpoint) |
protected void |
DefaultDebugger.onBeforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
Breakpoint breakpoint) |
void |
DefaultSubUnitOfWork.onDone(Exchange exchange) |
boolean |
DefaultDebugger.onEvent(Exchange exchange,
EventObject event) |
protected void |
DefaultDebugger.onEvent(Exchange exchange,
EventObject event,
Breakpoint breakpoint) |
void |
BreakpointSupport.onEvent(Exchange exchange,
EventObject event,
ProcessorDefinition<?> definition) |
protected void |
ProcessorEndpoint.onExchange(Exchange exchange) |
void |
ThrottlingInflightRoutePolicy.onExchangeDone(Route route,
Exchange exchange) |
void |
ThrottlingExceptionRoutePolicy.onExchangeDone(Route route,
Exchange exchange) |
void |
DurationRoutePolicy.onExchangeDone(Route route,
Exchange exchange) |
void |
DefaultSubUnitOfWork.onExhausted(Exchange exchange) |
protected void |
HeaderSelectorProducer.onMissingProcessor(Exchange exchange) |
protected abstract void |
BaseSelectorProducer.onMissingProcessor(Exchange exchange)
Invoked when no processor has been defined to process the message exchnage.
|
void |
EventDrivenPollingConsumer.process(Exchange exchange) |
void |
SynchronousDelegateProducer.process(Exchange exchange) |
void |
DeferProducer.process(Exchange exchange) |
void |
SubscribeMethodProcessor.process(Exchange exchange) |
void |
BaseSelectorProducer.process(Exchange exchange) |
void |
DefaultAsyncProducer.process(Exchange exchange) |
boolean |
InterceptSendToEndpointProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
DeferProducer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SubscribeMethodProcessor.process(Exchange exchange,
AsyncCallback callback) |
void |
DefaultClaimCheckRepository.push(Exchange exchange) |
void |
DefaultInflightRepository.remove(Exchange exchange) |
void |
DefaultInflightRepository.remove(Exchange exchange,
String routeId) |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
Exchange exchange) |
void |
ProducerCache.send(Endpoint endpoint,
Exchange exchange)
Sends the exchange to the given endpoint.
|
Exchange |
DefaultProducerTemplate.send(Exchange exchange) |
Exchange |
DefaultProducerTemplate.send(String endpointUri,
Exchange exchange) |
protected Exchange |
ProducerCache.sendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange) |
void |
MessageSupport.setExchange(Exchange exchange) |
protected void |
ThrottlingInflightRoutePolicy.throttle(Route route,
Exchange exchange)
Throttles the route when
Exchange s is done. |
static void |
DefaultExchangeHolder.unmarshal(Exchange exchange,
DefaultExchangeHolder payload)
Transfers the information from the payload to the exchange.
|
Object |
ZipDataFormat.unmarshal(Exchange exchange,
InputStream inputStream) |
Object |
SerializationDataFormat.unmarshal(Exchange exchange,
InputStream stream) |
Object |
StringDataFormat.unmarshal(Exchange exchange,
InputStream stream) |
Object |
GzipDataFormat.unmarshal(Exchange exchange,
InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Exchange> |
ProducerCache.asyncSend(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
CompletableFuture<Exchange> |
ProducerCache.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Constructor and Description |
---|
DefaultExchange(Exchange parent) |
DefaultUnitOfWork(Exchange exchange) |
DefaultUnitOfWork(Exchange exchange,
org.slf4j.Logger logger) |
EventNotifierCallback(AsyncCallback originalCallback,
Exchange exchange,
Endpoint endpoint) |
MDCUnitOfWork(Exchange exchange) |
Constructor and Description |
---|
EventDrivenPollingConsumer(Endpoint endpoint,
BlockingQueue<Exchange> queue) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultServiceCallProcessor.process(Exchange exchange) |
boolean |
DefaultServiceCallProcessor.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
Object |
OptimisedTypeConverter.convertTo(Class<?> type,
Exchange exchange,
Object value)
Attempts to convert the value to the given type
|
<T> T |
InstanceMethodFallbackTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
ArrayTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
FutureTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
AsyncProcessorTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
EnumTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
StaticMethodFallbackTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
ToStringTypeConverter.convertTo(Class<T> toType,
Exchange exchange,
Object value) |
<T> T |
InstanceMethodTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
PropertyEditorTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value)
Deprecated.
|
<T> T |
StaticMethodTypeConverter.convertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
BaseTypeConverterRegistry.convertTo(Class<T> type,
Exchange exchange,
Object value) |
protected TypeConversionException |
BaseTypeConverterRegistry.createTypeConversionException(Exchange exchange,
Class<?> type,
Object value,
Throwable cause) |
protected Object |
LazyLoadingTypeConverter.doConvertTo(Class<?> type,
Exchange exchange,
Object value,
boolean tryConvert)
Deprecated.
|
protected Object |
BaseTypeConverterRegistry.doConvertTo(Class<?> type,
Exchange exchange,
Object value,
boolean tryConvert) |
<T> T |
PropertyEditorTypeConverter.mandatoryConvertTo(Class<T> type,
Exchange exchange,
Object value)
Deprecated.
|
<T> T |
BaseTypeConverterRegistry.mandatoryConvertTo(Class<T> type,
Exchange exchange,
Object value) |
<T> T |
PropertyEditorTypeConverter.tryConvertTo(Class<T> type,
Exchange exchange,
Object value)
Deprecated.
|
<T> T |
BaseTypeConverterRegistry.tryConvertTo(Class<T> type,
Exchange exchange,
Object value) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
InMemorySagaCoordinator.beginStep(Exchange exchange,
CamelSagaStep step) |
Modifier and Type | Method and Description |
---|---|
Exchange |
RuntimeBeanExpressionException.getExchange() |
Modifier and Type | Method and Description |
---|---|
Object |
BeanExpression.evaluate(Exchange exchange) |
<T> T |
BeanExpression.evaluate(Exchange exchange,
Class<T> type) |
boolean |
BeanExpression.matches(Exchange exchange) |
Constructor and Description |
---|
RuntimeBeanExpressionException(Exchange exchange,
String beanName,
String method,
String message) |
RuntimeBeanExpressionException(Exchange exchange,
String beanName,
String method,
Throwable e) |
Modifier and Type | Method and Description |
---|---|
void |
InstrumentationProcessor.after(Exchange exchange,
StopWatch watch) |
StopWatch |
InstrumentationProcessor.before(Exchange exchange) |
protected void |
InstrumentationProcessor.beginTime(Exchange exchange) |
void |
DelegatePerformanceCounter.completedExchange(Exchange exchange,
long time) |
void |
CompositePerformanceCounter.completedExchange(Exchange exchange,
long time) |
void |
DelegatePerformanceCounter.failedExchange(Exchange exchange) |
void |
CompositePerformanceCounter.failedExchange(Exchange exchange) |
boolean |
InstrumentationProcessor.process(Exchange exchange,
AsyncCallback callback) |
void |
DelegatePerformanceCounter.processExchange(Exchange exchange) |
void |
CompositePerformanceCounter.processExchange(Exchange exchange) |
protected void |
InstrumentationProcessor.recordTime(Exchange exchange,
long duration) |
Modifier and Type | Method and Description |
---|---|
Exchange |
AbstractExchangeEvent.getExchange() |
Modifier and Type | Method and Description |
---|---|
EventObject |
DefaultEventFactory.createExchangeCompletedEvent(Exchange exchange) |
EventObject |
DefaultEventFactory.createExchangeCreatedEvent(Exchange exchange) |
EventObject |
DefaultEventFactory.createExchangeFailedEvent(Exchange exchange) |
EventObject |
DefaultEventFactory.createExchangeFailureHandledEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri) |
EventObject |
DefaultEventFactory.createExchangeFailureHandlingEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri) |
EventObject |
DefaultEventFactory.createExchangeRedeliveryEvent(Exchange exchange,
int attempt) |
EventObject |
DefaultEventFactory.createExchangeSendingEvent(Exchange exchange,
Endpoint endpoint) |
EventObject |
DefaultEventFactory.createExchangeSentEvent(Exchange exchange,
Endpoint endpoint,
long timeTaken) |
Constructor and Description |
---|
AbstractExchangeEvent(Exchange source) |
ExchangeCompletedEvent(Exchange source) |
ExchangeCreatedEvent(Exchange source) |
ExchangeFailedEvent(Exchange source) |
ExchangeFailureHandledEvent(Exchange source,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri) |
ExchangeFailureHandlingEvent(Exchange source,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri) |
ExchangeRedeliveryEvent(Exchange source,
int attempt) |
ExchangeSendingEvent(Exchange source,
Endpoint endpoint) |
ExchangeSentEvent(Exchange source,
Endpoint endpoint,
long timeTaken) |
Modifier and Type | Method and Description |
---|---|
void |
ManagedPerformanceCounter.completedExchange(Exchange exchange,
long time) |
void |
ManagedPerformanceCounter.failedExchange(Exchange exchange) |
void |
ManagedPerformanceCounter.processExchange(Exchange exchange) |
void |
JMXNotificationTraceEventHandler.traceExchange(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange) |
Object |
JMXNotificationTraceEventHandler.traceExchangeIn(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange) |
void |
JMXNotificationTraceEventHandler.traceExchangeOut(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange,
Object traceState) |
Modifier and Type | Method and Description |
---|---|
<Result> Type |
ProcessorDefinition.setBody(Function<Exchange,Result> function)
Message Translator EIP:
Adds a processor which sets the body on the IN message
|
Modifier and Type | Method and Description |
---|---|
void |
ExpressionDefinition.assertMatches(String text,
Exchange exchange) |
Object |
ExpressionDefinition.evaluate(Exchange exchange) |
<T> T |
ExpressionDefinition.evaluate(Exchange exchange,
Class<T> type) |
boolean |
ExpressionDefinition.matches(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
Exchange |
ClaimCheckAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
protected Exchange |
WireTapProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern) |
protected Exchange |
SendProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern) |
protected Exchange |
SendDynamicProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern,
ExchangePattern destinationExchangePattern,
Endpoint endpoint) |
Exchange |
UnitOfWorkProducer.createExchange() |
Exchange |
UnitOfWorkProducer.createExchange(Exchange exchange)
Deprecated.
|
Exchange |
UnitOfWorkProducer.createExchange(ExchangePattern pattern) |
protected Exchange |
Pipeline.createNextExchange(Exchange previousExchange)
Strategy method to create the next exchange from the previous exchange.
|
static Exchange |
PipelineHelper.createNextExchange(Exchange previousExchange)
Strategy method to create the next exchange from the previous exchange.
|
protected Exchange |
Enricher.createResourceExchange(Exchange source,
ExchangePattern pattern)
Creates a new
DefaultExchange instance from the given
exchange . |
protected Exchange |
RedeliveryErrorHandler.defensiveCopyExchangeIfNeeded(Exchange exchange)
Performs a defensive copy of the exchange if needed
|
Exchange |
ProcessorExchangePair.getExchange() |
protected Exchange |
OnCompletionProcessor.prepareExchange(Exchange exchange)
Prepares the
Exchange to send as onCompletion. |
protected Exchange |
LoopProcessor.prepareExchange(Exchange exchange,
int index,
Exchange original)
Prepares the exchange for the next iteration
|
protected Exchange |
RoutingSlip.prepareExchangeForRoutingSlip(Exchange current,
Endpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected static Set<Exchange> |
Resequencer.createSet(Comparator<? super Exchange> comparator,
boolean allowDuplicates,
boolean reverse) |
protected static Set<Exchange> |
Resequencer.createSet(Expression expression,
boolean allowDuplicates,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
void |
RestBindingAdvice.after(Exchange exchange,
Map<String,Object> state) |
void |
CamelInternalProcessor.MessageHistoryAdvice.after(Exchange exchange,
MessageHistory history) |
void |
ContractAdvice.after(Exchange exchange,
Object data) |
void |
CamelInternalProcessor.RouteLifecycleAdvice.after(Exchange exchange,
Object object) |
void |
CamelInternalProcessor.RouteInflightRepositoryAdvice.after(Exchange exchange,
Object state) |
void |
CamelInternalProcessor.RoutePolicyAdvice.after(Exchange exchange,
Object data) |
void |
CamelInternalProcessor.BacklogTracerAdvice.after(Exchange exchange,
Object data) |
void |
CamelInternalProcessor.DelayerAdvice.after(Exchange exchange,
Object data) |
void |
CamelInternalProcessor.InstrumentationAdvice.after(Exchange exchange,
StopWatch watch) |
void |
CamelInternalProcessor.BacklogDebuggerAdvice.after(Exchange exchange,
StopWatch stopWatch) |
void |
CamelInternalProcessor.StreamCachingAdvice.after(Exchange exchange,
StreamCache sc) |
void |
CamelInternalProcessorAdvice.after(Exchange exchange,
T data)
Callback executed after processing a step in the route.
|
void |
CamelInternalProcessor.RouteContextAdvice.after(Exchange exchange,
UnitOfWork unitOfWork)
Deprecated.
|
void |
CamelInternalProcessor.UnitOfWorkProcessorAdvice.after(Exchange exchange,
UnitOfWork uow) |
void |
CamelInternalProcessor.SubUnitOfWorkProcessorAdvice.after(Exchange exchange,
UnitOfWork unitOfWork) |
Exchange |
ClaimCheckAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Object |
ContractAdvice.before(Exchange exchange) |
T |
CamelInternalProcessorAdvice.before(Exchange exchange)
Callback executed before processing a step in the route.
|
Object |
CamelInternalProcessor.RouteLifecycleAdvice.before(Exchange exchange) |
StopWatch |
CamelInternalProcessor.InstrumentationAdvice.before(Exchange exchange) |
UnitOfWork |
CamelInternalProcessor.RouteContextAdvice.before(Exchange exchange)
Deprecated.
|
Object |
CamelInternalProcessor.RouteInflightRepositoryAdvice.before(Exchange exchange) |
Object |
CamelInternalProcessor.RoutePolicyAdvice.before(Exchange exchange) |
Object |
CamelInternalProcessor.BacklogTracerAdvice.before(Exchange exchange) |
StopWatch |
CamelInternalProcessor.BacklogDebuggerAdvice.before(Exchange exchange) |
UnitOfWork |
CamelInternalProcessor.UnitOfWorkProcessorAdvice.before(Exchange exchange) |
UnitOfWork |
CamelInternalProcessor.SubUnitOfWorkProcessorAdvice.before(Exchange exchange) |
MessageHistory |
CamelInternalProcessor.MessageHistoryAdvice.before(Exchange exchange) |
StreamCache |
CamelInternalProcessor.StreamCachingAdvice.before(Exchange exchange) |
Object |
CamelInternalProcessor.DelayerAdvice.before(Exchange exchange) |
Map<String,Object> |
RestBindingAdvice.before(Exchange exchange) |
protected void |
CamelInternalProcessor.InstrumentationAdvice.beginTime(Exchange exchange) |
protected long |
Delayer.calculateDelay(Exchange exchange) |
protected abstract long |
DelayProcessorSupport.calculateDelay(Exchange exchange) |
protected Throwable |
CatchProcessor.catches(Exchange exchange,
Throwable exception)
Returns with the exception that is caught by this processor.
|
protected Exchange |
WireTapProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern) |
protected Exchange |
SendProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern) |
protected Exchange |
SendDynamicProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern,
ExchangePattern destinationExchangePattern,
Endpoint endpoint) |
protected boolean |
CamelInternalProcessor.continueProcessing(Exchange exchange)
Strategy to determine if we should continue processing the
Exchange . |
protected boolean |
SharedCamelInternalProcessor.continueProcessing(Exchange exchange,
AsyncProcessor processor)
Strategy to determine if we should continue processing the
Exchange . |
static boolean |
PipelineHelper.continueProcessing(Exchange exchange,
String message,
org.slf4j.Logger log)
Should we continue processing the exchange?
|
protected boolean |
TryProcessor.continueRouting(Iterator<Processor> it,
Exchange exchange) |
protected boolean |
Pipeline.continueRouting(Iterator<Processor> it,
Exchange exchange) |
protected AsyncProcessor |
RoutingSlip.createErrorHandler(RouteContext routeContext,
Exchange exchange,
AsyncProcessor processor,
Endpoint endpoint) |
protected Processor |
MulticastProcessor.createErrorHandler(RouteContext routeContext,
Exchange exchange,
Processor processor) |
Exchange |
UnitOfWorkProducer.createExchange(Exchange exchange)
Deprecated.
|
protected String |
ThroughputLogger.createLogMessage(Exchange exchange,
int receivedCount) |
protected Exchange |
Pipeline.createNextExchange(Exchange previousExchange)
Strategy method to create the next exchange from the previous exchange.
|
static Exchange |
PipelineHelper.createNextExchange(Exchange previousExchange)
Strategy method to create the next exchange from the previous exchange.
|
protected ProcessorExchangePair |
RecipientListProcessor.createProcessorExchangePair(int index,
Endpoint endpoint,
Producer producer,
Exchange exchange,
ExchangePattern pattern)
This logic is similar to MulticastProcessor but we have to return a RecipientProcessorExchangePair instead
|
protected ProcessorExchangePair |
MulticastProcessor.createProcessorExchangePair(int index,
Processor processor,
Exchange exchange,
RouteContext routeContext)
Creates the
ProcessorExchangePair which holds the processor and exchange to be send out. |
protected Iterable<ProcessorExchangePair> |
MulticastProcessor.createProcessorExchangePairs(Exchange exchange) |
protected Iterable<ProcessorExchangePair> |
RecipientListProcessor.createProcessorExchangePairs(Exchange exchange) |
protected Iterable<ProcessorExchangePair> |
Splitter.createProcessorExchangePairs(Exchange exchange) |
protected Exchange |
Enricher.createResourceExchange(Exchange source,
ExchangePattern pattern)
Creates a new
DefaultExchange instance from the given
exchange . |
protected RoutingSlip.RoutingSlipIterator |
RoutingSlip.createRoutingSlipIterator(Exchange exchange,
Expression expression)
Creates the route slip iterator to be used.
|
protected RoutingSlip.RoutingSlipIterator |
DynamicRouter.createRoutingSlipIterator(Exchange exchange,
Expression expression) |
protected UnitOfWork |
CamelInternalProcessor.UnitOfWorkProcessorAdvice.createUnitOfWork(Exchange exchange) |
protected UnitOfWork |
CamelInternalProcessor.ChildUnitOfWorkProcessorAdvice.createUnitOfWork(Exchange exchange) |
protected Processor |
MulticastProcessor.createUnitOfWorkProcessor(RouteContext routeContext,
Processor processor,
Exchange exchange)
Strategy to create the unit of work to be used for the sub route
|
protected Exchange |
RedeliveryErrorHandler.defensiveCopyExchangeIfNeeded(Exchange exchange)
Performs a defensive copy of the exchange if needed
|
protected void |
DelayProcessorSupport.delay(long delay,
Exchange exchange)
Delays the given time before continuing.
|
protected boolean |
RedeliveryErrorHandler.deliverToFailureProcessor(Processor processor,
boolean isDeadLetterChannel,
Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data,
AsyncCallback callback)
All redelivery attempts failed so move the exchange to the dead letter queue
|
protected void |
RedeliveryErrorHandler.deliverToOnRedeliveryProcessor(Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data)
Gives an optional configured redelivery processor a chance to process before the Exchange
will be redelivered.
|
protected long |
RedeliveryErrorHandler.determineRedeliveryDelay(Exchange exchange,
RedeliveryPolicy redeliveryPolicy,
long redeliveryDelay,
int redeliveryCounter)
Determines the redelivery delay time by first inspecting the Message header
REDELIVERY_DELAY
and if not present, defaulting to RedeliveryPolicy.calculateRedeliveryDelay(long, int) |
protected void |
MulticastProcessor.doAggregate(AggregationStrategy strategy,
AtomicExchange result,
Exchange exchange)
Aggregate the
Exchange with the current result. |
protected void |
MulticastProcessor.doAggregateInternal(AggregationStrategy strategy,
AtomicExchange result,
Exchange exchange)
Aggregate the
Exchange with the current result. |
protected void |
MulticastProcessor.doDone(Exchange original,
Exchange subExchange,
Iterable<ProcessorExchangePair> pairs,
AsyncCallback callback,
boolean doneSync,
boolean forceExhaust)
Common work which must be done when we are done multicasting.
|
protected static void |
OnCompletionProcessor.doProcess(Processor processor,
Exchange exchange)
Processes the exchange by the processors
|
protected void |
MulticastProcessor.doProcessParallel(Exchange original,
AtomicExchange result,
Iterable<ProcessorExchangePair> pairs,
boolean streaming,
AsyncCallback callback) |
protected boolean |
MulticastProcessor.doProcessSequential(Exchange original,
AtomicExchange result,
Iterable<ProcessorExchangePair> pairs,
AsyncCallback callback) |
boolean |
RoutingSlip.doRoutingSlip(Exchange exchange,
Object routingSlip,
AsyncCallback callback) |
String |
DefaultExchangeFormatter.format(Exchange exchange) |
protected AggregationStrategy |
MulticastProcessor.getAggregationStrategy(Exchange exchange) |
protected OnExceptionDefinition |
ErrorHandlerSupport.getExceptionPolicy(Exchange exchange,
Throwable exception)
Attempts to find the best suited
OnExceptionDefinition to be used for handling the given thrown exception. |
protected Integer |
MulticastProcessor.getExchangeIndex(Exchange exchange) |
protected Integer |
Splitter.getExchangeIndex(Exchange exchange) |
protected void |
RedeliveryErrorHandler.handleException(Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data,
boolean isDeadLetterChannel) |
protected boolean |
CatchProcessor.handles(Exchange exchange)
Whether this catch processor handles the exception it have caught
|
protected void |
DelayProcessorSupport.handleSleepInterruptedException(InterruptedException e,
Exchange exchange)
Called when a sleep is interrupted; allows derived classes to handle this case differently
|
boolean |
RoutingSlip.RoutingSlipIterator.hasNext(Exchange exchange)
Are the more routing slip(s)?
|
protected boolean |
RedeliveryErrorHandler.isCancelledOrInterrupted(Exchange exchange)
Strategy to determine if the exchange was cancelled or interrupted
|
protected boolean |
RedeliveryErrorHandler.isDone(Exchange exchange)
Strategy to determine if the exchange is done so we can continue
|
protected String |
CamelLogger.logMessage(Exchange exchange)
Deprecated.
|
protected String |
CamelLogger.logMessage(Exchange exchange,
String message)
Deprecated.
|
boolean |
FilterProcessor.matches(Exchange exchange) |
protected boolean |
CatchProcessor.matchesWhen(Exchange exchange)
Strategy method for matching the exception type with the current exchange.
|
Object |
RoutingSlip.RoutingSlipIterator.next(Exchange exchange)
Returns the next routing slip(s).
|
protected void |
RedeliveryErrorHandler.onExceptionOccurred(Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data)
Gives an optional configured OnExceptionOccurred processor a chance to process just after an exception
was thrown while processing the Exchange.
|
protected void |
PollEnricher.preCheckPoll(Exchange exchange)
Strategy to pre check polling.
|
protected Exchange |
OnCompletionProcessor.prepareExchange(Exchange exchange)
Prepares the
Exchange to send as onCompletion. |
protected Exchange |
LoopProcessor.prepareExchange(Exchange exchange,
int index,
Exchange original)
Prepares the exchange for the next iteration
|
protected void |
RedeliveryErrorHandler.prepareExchangeAfterFailure(Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data,
boolean isDeadLetterChannel,
boolean shouldHandle,
boolean shouldContinue) |
protected void |
RedeliveryErrorHandler.prepareExchangeForContinue(Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data,
boolean isDeadLetterChannel) |
protected void |
RedeliveryErrorHandler.prepareExchangeForRedelivery(Exchange exchange,
RedeliveryErrorHandler.RedeliveryData data) |
protected Exchange |
RoutingSlip.prepareExchangeForRoutingSlip(Exchange current,
Endpoint endpoint) |
protected void |
MulticastProcessor.prepareSharedUnitOfWork(Exchange childExchange,
Exchange parentExchange)
Prepares the exchange for participating in a shared unit of work
This ensures a child exchange can access its parent
UnitOfWork when it participate
in a shared unit of work. |
void |
MulticastProcessor.process(Exchange exchange) |
void |
TryProcessor.process(Exchange exchange) |
void |
LogProcessor.process(Exchange exchange) |
void |
SortProcessor.process(Exchange exchange) |
void |
CamelLogProcessor.process(Exchange exchange) |
void |
ClaimCheckProcessor.process(Exchange exchange) |
void |
WireTapProcessor.process(Exchange exchange) |
void |
RemovePropertyProcessor.process(Exchange exchange) |
void |
DelegateAsyncProcessor.process(Exchange exchange) |
void |
ConvertBodyProcessor.process(Exchange exchange) |
void |
UnitOfWorkProducer.process(Exchange exchange) |
void |
RemoveHeaderProcessor.process(Exchange exchange) |
void |
StopProcessor.process(Exchange exchange) |
void |
OnCompletionProcessor.process(Exchange exchange) |
void |
StreamResequencer.process(Exchange exchange) |
void |
ExchangePatternProcessor.process(Exchange exchange) |
void |
ChoiceProcessor.process(Exchange exchange) |
void |
TransformProcessor.process(Exchange exchange) |
void |
RemovePropertiesProcessor.process(Exchange exchange) |
void |
RedeliveryErrorHandler.process(Exchange exchange) |
void |
Pipeline.process(Exchange exchange) |
void |
ThrowExceptionProcessor.process(Exchange exchange) |
void |
DelegateProcessor.process(Exchange exchange) |
void |
MarshalProcessor.process(Exchange exchange) |
void |
ThreadsProcessor.process(Exchange exchange) |
void |
RecipientList.process(Exchange exchange) |
void |
RoutingSlip.process(Exchange exchange) |
void |
BatchProcessor.process(Exchange exchange)
Deprecated.
|
void |
RollbackProcessor.process(Exchange exchange) |
void |
CamelLogger.process(Exchange exchange)
Deprecated.
|
void |
SetHeaderProcessor.process(Exchange exchange) |
void |
SendProcessor.process(Exchange exchange) |
void |
SetBodyProcessor.process(Exchange exchange) |
void |
InterceptorToAsyncProcessorBridge.process(Exchange exchange)
Process invoked by the interceptor
|
void |
UnmarshalProcessor.process(Exchange exchange) |
void |
EvaluateExpressionProcessor.process(Exchange exchange) |
void |
Enricher.process(Exchange exchange) |
void |
PollEnricher.process(Exchange exchange) |
void |
SendDynamicProcessor.process(Exchange exchange) |
void |
ScriptProcessor.process(Exchange exchange) |
void |
DelegateSyncProcessor.process(Exchange exchange) |
void |
RemoveHeadersProcessor.process(Exchange exchange) |
void |
SetPropertyProcessor.process(Exchange exchange) |
void |
ThroughputLogger.process(Exchange exchange) |
boolean |
MulticastProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
TryProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
LogProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SortProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
CamelLogProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ClaimCheckProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
CatchProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
WireTapProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RemovePropertyProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
DelegateAsyncProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ConvertBodyProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RemoveHeaderProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
StopProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
OnCompletionProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SamplingThrottler.process(Exchange exchange,
AsyncCallback callback) |
boolean |
LoopProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
StreamResequencer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ExchangePatternProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ChoiceProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
TransformProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RemovePropertiesProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RedeliveryErrorHandler.process(Exchange exchange,
AsyncCallback callback)
Process the exchange using redelivery error handling.
|
boolean |
Pipeline.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ThrowExceptionProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
MarshalProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ThreadsProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RecipientList.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RoutingSlip.process(Exchange exchange,
AsyncCallback callback) |
boolean |
Throttler.process(Exchange exchange,
AsyncCallback callback) |
boolean |
BatchProcessor.process(Exchange exchange,
AsyncCallback callback)
Deprecated.
Enqueues an exchange for later batch processing.
|
boolean |
FilterProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
CamelInternalProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RollbackProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
CamelLogger.process(Exchange exchange,
AsyncCallback callback)
Deprecated.
|
boolean |
FatalFallbackErrorHandler.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SetHeaderProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SendProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SetBodyProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
InterceptorToAsyncProcessorBridge.process(Exchange exchange,
AsyncCallback callback) |
boolean |
UnmarshalProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
EvaluateExpressionProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
Enricher.process(Exchange exchange,
AsyncCallback callback)
Enriches the input data (
exchange ) by first obtaining
additional data from an endpoint represented by an endpoint
producer and second by aggregating input data and additional
data. |
boolean |
FinallyProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
PollEnricher.process(Exchange exchange,
AsyncCallback callback)
Enriches the input data (
exchange ) by first obtaining
additional data from an endpoint represented by an endpoint
producer and second by aggregating input data and additional
data. |
boolean |
SendDynamicProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
DelayProcessorSupport.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ScriptProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
DelegateSyncProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
Splitter.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RemoveHeadersProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SetPropertyProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
ThroughputLogger.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SharedCamelInternalProcessor.process(Exchange exchange,
AsyncCallback callback,
AsyncProcessor processor,
Processor resultProcessor)
Asynchronous API
|
protected boolean |
LoopProcessor.process(Exchange exchange,
AsyncCallback callback,
AtomicInteger index,
AtomicInteger count,
AtomicBoolean doWhile,
Exchange original) |
protected boolean |
TryProcessor.process(Exchange exchange,
AsyncCallback callback,
Iterator<Processor> processors,
AsyncProcessor processor,
Object lastHandled) |
void |
SharedCamelInternalProcessor.process(Exchange exchange,
AsyncProcessor processor,
Processor resultProcessor)
Synchronous API
|
void |
CamelLogProcessor.process(Exchange exchange,
String message) |
void |
CamelLogger.process(Exchange exchange,
String message)
Deprecated.
|
void |
CamelLogProcessor.process(Exchange exchange,
Throwable exception) |
void |
CamelLogger.process(Exchange exchange,
Throwable exception)
Deprecated.
|
protected void |
RedeliveryErrorHandler.processAsyncErrorHandler(Exchange exchange,
AsyncCallback callback,
RedeliveryErrorHandler.RedeliveryData data)
This logic is only executed if we have to retry redelivery asynchronously, which have to be done from the callback.
|
protected boolean |
Throttler.processAsynchronously(Exchange exchange,
AsyncCallback callback,
org.apache.camel.processor.Throttler.ThrottlingState throttlingState)
Delegate blocking on the DelayQueue to an asyncExecutor.
|
protected boolean |
DelayProcessorSupport.processDelay(Exchange exchange,
AsyncCallback callback,
long delay) |
protected boolean |
RoutingSlip.processExchange(Endpoint endpoint,
Exchange exchange,
Exchange original,
AsyncCallback originalCallback,
RoutingSlip.RoutingSlipIterator iter) |
protected void |
BatchProcessor.processExchange(Exchange exchange)
Deprecated.
Strategy Method to process an exchange in the batch.
|
protected void |
DelegateProcessor.processNext(Exchange exchange) |
protected boolean |
DelegateAsyncProcessor.processNext(Exchange exchange,
AsyncCallback callback)
Deprecated.
|
protected void |
CamelInternalProcessor.InstrumentationAdvice.recordTime(Exchange exchange,
long duration) |
protected void |
MulticastProcessor.removeAggregationStrategyFromExchange(Exchange exchange)
Removes the associated
AggregationStrategy from the Exchange
which must be done after use. |
protected static Endpoint |
RecipientListProcessor.resolveEndpoint(Exchange exchange,
Object recipient) |
protected Endpoint |
RecipientList.resolveEndpoint(Exchange exchange,
Object recipient) |
protected Endpoint |
Enricher.resolveEndpoint(Exchange exchange,
Object recipient) |
protected Endpoint |
PollEnricher.resolveEndpoint(Exchange exchange,
Object recipient) |
protected static Endpoint |
SendDynamicProcessor.resolveEndpoint(Exchange exchange,
Object recipient) |
protected Endpoint |
RoutingSlip.resolveEndpoint(RoutingSlip.RoutingSlipIterator iter,
Exchange exchange) |
protected static String |
SendDynamicProcessor.resolveScheme(Exchange exchange,
String uri) |
protected static String |
SendDynamicProcessor.resolveUri(Exchange exchange,
Object recipient) |
void |
StreamResequencer.sendElement(Exchange exchange)
Sends the
exchange to the next processor . |
boolean |
RecipientList.sendToRecipientList(Exchange exchange,
Object recipientList,
AsyncCallback callback)
Sends the given exchange to the recipient list
|
protected void |
MulticastProcessor.setAggregationStrategyOnExchange(Exchange exchange,
AggregationStrategy aggregationStrategy)
Sets the given
AggregationStrategy on the Exchange . |
protected static void |
MulticastProcessor.setToEndpoint(Exchange exchange,
Processor processor) |
protected boolean |
RedeliveryErrorHandler.shouldHandleException(Exchange exchange)
Strategy whether the exchange has an exception that we should try to handle.
|
boolean |
RedeliveryPolicy.shouldRedeliver(Exchange exchange,
int redeliveryCounter,
Predicate retryWhile)
Returns true if the policy decides that the message exchange should be
redelivered.
|
protected void |
MulticastProcessor.updateNewExchange(Exchange exchange,
int index,
Iterable<ProcessorExchangePair> allPairs,
Iterator<ProcessorExchangePair> it) |
protected void |
Splitter.updateNewExchange(Exchange exchange,
int index,
Iterable<ProcessorExchangePair> allPairs,
Iterator<ProcessorExchangePair> it) |
Modifier and Type | Method and Description |
---|---|
protected static Set<Exchange> |
Resequencer.createSet(Comparator<? super Exchange> comparator,
boolean allowDuplicates,
boolean reverse) |
Constructor and Description |
---|
BatchProcessor(CamelContext camelContext,
Processor processor,
Collection<Exchange> collection,
Expression expression)
Deprecated.
|
Resequencer(CamelContext camelContext,
Processor processor,
Set<Exchange> collection,
Expression expression) |
StreamResequencer(CamelContext camelContext,
Processor processor,
SequenceElementComparator<Exchange> comparator,
Expression expression)
Creates a new
StreamResequencer instance. |
Modifier and Type | Method and Description |
---|---|
Exchange |
MemoryAggregationRepository.add(CamelContext camelContext,
String key,
Exchange exchange) |
Exchange |
MemoryAggregationRepository.add(CamelContext camelContext,
String key,
Exchange oldExchange,
Exchange newExchange) |
Exchange |
AbstractListAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange)
This method will aggregate the old and new exchange and return the result.
|
Exchange |
AggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange)
Aggregates an old and new exchange together to create a single combined exchange
|
Exchange |
GroupedExchangeAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
UseOriginalAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
AggregationStrategyBeanAdapter.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
UseLatestAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
GroupedMessageAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
ShareUnitOfWorkAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
MemoryAggregationRepository.get(CamelContext camelContext,
String key) |
Exchange |
UseOriginalAggregationStrategy.getOriginal() |
Exchange |
GroupedExchangeAggregationStrategy.getValue(Exchange exchange) |
protected Exchange |
AggregateProcessor.onAggregation(Exchange oldExchange,
Exchange newExchange) |
protected Exchange |
AggregateProcessor.onCompletion(String key,
Exchange original,
Exchange aggregated,
boolean fromTimeout) |
protected Exchange |
UseLatestAggregationStrategy.propagateFailure(Exchange oldExchange,
Exchange newExchange) |
Modifier and Type | Method and Description |
---|---|
Exchange |
MemoryAggregationRepository.add(CamelContext camelContext,
String key,
Exchange exchange) |
Exchange |
MemoryAggregationRepository.add(CamelContext camelContext,
String key,
Exchange oldExchange,
Exchange newExchange) |
Exchange |
AbstractListAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange)
This method will aggregate the old and new exchange and return the result.
|
Exchange |
AggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange)
Aggregates an old and new exchange together to create a single combined exchange
|
Exchange |
GroupedExchangeAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
UseOriginalAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
AggregationStrategyBeanAdapter.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
UseLatestAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
GroupedMessageAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
ShareUnitOfWorkAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
protected Exception |
UseOriginalAggregationStrategy.checkException(Exchange oldExchange,
Exchange newExchange) |
protected void |
AggregateProcessor.doAggregationComplete(String complete,
List<Exchange> list,
String key,
Exchange originalExchange,
Exchange answer) |
protected void |
AggregateProcessor.doAggregationRepositoryAdd(CamelContext camelContext,
String key,
Exchange oldExchange,
Exchange newExchange) |
protected void |
AggregateProcessor.doProcess(Exchange exchange) |
abstract V |
AbstractListAggregationStrategy.getValue(Exchange exchange)
This method is implemented by the sub-class and is called to retrieve
an instance of the value that will be aggregated and forwarded to the
receiving end point.
|
Exchange |
GroupedExchangeAggregationStrategy.getValue(Exchange exchange) |
Object |
GroupedBodyAggregationStrategy.getValue(Exchange exchange) |
Message |
GroupedMessageAggregationStrategy.getValue(Exchange exchange) |
Object |
AggregationStrategyMethodInfo.invoke(Object pojo,
Exchange oldExchange,
Exchange newExchange) |
protected String |
AggregateProcessor.isCompleted(String key,
Exchange exchange)
Tests whether the given exchange is complete or not
|
protected String |
AggregateProcessor.isPreCompleted(String key,
Exchange oldExchange,
Exchange newExchange)
Tests whether the given exchanges is pre-complete or not
|
UseOriginalAggregationStrategy |
UseOriginalAggregationStrategy.newInstance(Exchange original)
Creates a new instance as a clone of this strategy with the new given original.
|
protected Exchange |
AggregateProcessor.onAggregation(Exchange oldExchange,
Exchange newExchange) |
void |
AbstractListAggregationStrategy.onCompletion(Exchange exchange) |
void |
CompletionAwareAggregationStrategy.onCompletion(Exchange exchange)
The aggregated
Exchange has completed
Important: This method must not throw any exceptions. |
void |
GroupedExchangeAggregationStrategy.onCompletion(Exchange exchange) |
protected Exchange |
AggregateProcessor.onCompletion(String key,
Exchange original,
Exchange aggregated,
boolean fromTimeout) |
void |
OptimisticLockingAwareAggregationStrategy.onOptimisticLockFailure(Exchange oldExchange,
Exchange newExchange) |
protected void |
AggregateProcessor.onOptimisticLockingFailure(Exchange oldExchange,
Exchange newExchange) |
protected boolean |
AggregateProcessor.onPreCompletionAggregation(Exchange oldExchange,
Exchange newExchange) |
boolean |
PreCompletionAwareAggregationStrategy.preComplete(Exchange oldExchange,
Exchange newExchange)
Determines if the aggregation should complete the current group, and start a new group, or the aggregation
should continue using the current group.
|
void |
AggregateProcessor.process(Exchange exchange) |
boolean |
AggregateProcessor.process(Exchange exchange,
AsyncCallback callback) |
protected void |
UseLatestAggregationStrategy.propagateException(Exchange oldExchange,
Exchange newExchange) |
protected Exchange |
UseLatestAggregationStrategy.propagateFailure(Exchange oldExchange,
Exchange newExchange) |
protected void |
ShareUnitOfWorkAggregationStrategy.propagateFailure(Exchange answer,
Exchange newExchange) |
void |
MemoryAggregationRepository.remove(CamelContext camelContext,
String key,
Exchange exchange) |
void |
UseOriginalAggregationStrategy.setOriginal(Exchange original)
Deprecated.
|
void |
TimeoutAwareAggregationStrategy.timeout(Exchange oldExchange,
int index,
int total,
long timeout)
A timeout occurred.
|
protected void |
AggregateProcessor.trackTimeout(String key,
Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
protected void |
AggregateProcessor.doAggregationComplete(String complete,
List<Exchange> list,
String key,
Exchange originalExchange,
Exchange answer) |
Constructor and Description |
---|
ClosedCorrelationKeyException(String correlationKey,
Exchange exchange) |
ClosedCorrelationKeyException(String correlationKey,
Exchange exchange,
Throwable cause) |
UseOriginalAggregationStrategy(Exchange original,
boolean propagateException) |
Constructor and Description |
---|
BindingException(String message,
Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
OnExceptionDefinition |
DefaultExceptionPolicyStrategy.getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception) |
OnExceptionDefinition |
ExceptionPolicyStrategy.getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception)
Resolves the
OnExceptionDefinition that should handle the thrown exception. |
protected boolean |
DefaultExceptionPolicyStrategy.matchesWhen(OnExceptionDefinition definition,
Exchange exchange)
Strategy method for matching the exception type with the current exchange.
|
Modifier and Type | Method and Description |
---|---|
Exchange |
NoMessageIdException.getExchange()
The exchange which caused this failure
|
Modifier and Type | Method and Description |
---|---|
void |
IdempotentOnCompletion.onComplete(Exchange exchange) |
protected void |
IdempotentOnCompletion.onCompletedMessage(Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behavior of
processing a completed message
|
protected void |
IdempotentConsumer.onDuplicateMessage(Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behaviour of
processing a duplicate message
|
protected void |
IdempotentOnCompletion.onFailedMessage(Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behavior of
processing a failed message
|
void |
IdempotentOnCompletion.onFailure(Exchange exchange) |
void |
IdempotentConsumer.process(Exchange exchange) |
boolean |
IdempotentConsumer.process(Exchange exchange,
AsyncCallback callback) |
Constructor and Description |
---|
NoMessageIdException(Exchange exchange,
Expression expression) |
Modifier and Type | Method and Description |
---|---|
Exchange |
BacklogDebugger.getSuspendedExchange(String id)
Gets the exchanged suspended at the given breakpoint id or null if there is none at that id.
|
Exchange |
TraceEventMessage.getTracedExchange()
Gets the traced
Exchange . |
Exchange |
DefaultTraceEventMessage.getTracedExchange()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BacklogDebugger.afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
long timeTaken) |
boolean |
BacklogDebugger.beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition) |
long |
DelayInterceptor.calculateDelay(Exchange exchange)
Deprecated.
|
protected String |
DefaultTraceFormatter.extractBreadCrumb(TraceInterceptor interceptor,
ProcessorDefinition<?> currentNode,
Exchange exchange)
Deprecated.
Creates the breadcrumb based on whether this was a trace of
an exchange coming out of or into a processing step.
|
String |
TraceInterceptor.format(Exchange exchange)
Deprecated.
|
Object |
DefaultTraceFormatter.format(TraceInterceptor interceptor,
ProcessorDefinition<?> node,
Exchange exchange)
Deprecated.
|
Object |
TraceFormatter.format(TraceInterceptor interceptor,
ProcessorDefinition<?> node,
Exchange exchange)
Deprecated.
Formats a log message at given point of interception.
|
protected Object |
DefaultTraceFormatter.getBreadCrumbID(Exchange exchange)
Deprecated.
|
protected String |
DefaultTraceFormatter.getNodeMessage(RouteNode entry,
Exchange exchange)
Deprecated.
|
protected void |
HandleFaultInterceptor.handleFault(Exchange exchange)
Handles the fault message by converting it to an Exception
|
protected void |
TraceInterceptor.logException(Exchange exchange,
Throwable throwable)
Deprecated.
|
protected void |
TraceInterceptor.logExchange(Exchange exchange)
Deprecated.
|
boolean |
HandleFaultInterceptor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
TraceInterceptor.process(Exchange exchange,
AsyncCallback callback)
Deprecated.
|
boolean |
StreamCachingInterceptor.process(Exchange exchange,
AsyncCallback callback)
Deprecated.
|
protected boolean |
TraceInterceptor.shouldLogException(Exchange exchange)
Deprecated.
Returns true if the given exchange should be logged when an exception was thrown
|
protected boolean |
TraceInterceptor.shouldLogExchange(Exchange exchange)
Deprecated.
Returns true if the given exchange should be logged in the trace list
|
boolean |
BacklogTracer.shouldTrace(ProcessorDefinition<?> definition,
Exchange exchange)
Whether or not to trace the given processor definition.
|
protected void |
TraceInterceptor.traceExchange(Exchange exchange)
Deprecated.
|
void |
DefaultTraceEventHandler.traceExchange(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
Deprecated.
|
void |
TraceEventHandler.traceExchange(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
Deprecated.
Event called when an
Exchange is about to be processed
This event is only called if trace out has been disabled (which it is by default). |
protected Object |
TraceInterceptor.traceExchangeIn(Exchange exchange)
Deprecated.
|
Object |
DefaultTraceEventHandler.traceExchangeIn(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
Deprecated.
|
Object |
TraceEventHandler.traceExchangeIn(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
Deprecated.
Event called when an
Exchange is about to be processed (in)
This event is only called if trace out has been enabled. |
protected void |
TraceInterceptor.traceExchangeOut(Exchange exchange,
Object traceState)
Deprecated.
|
void |
DefaultTraceEventHandler.traceExchangeOut(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange,
Object traceState)
Deprecated.
|
void |
TraceEventHandler.traceExchangeOut(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange,
Object traceState)
Deprecated.
Event called when an
Exchange has been processed (out)
This event is only called if trace out has been enabled. |
protected void |
TraceInterceptor.traceIntercept(InterceptDefinition intercept,
TracedRouteNodes traced,
Exchange exchange)
Deprecated.
|
Constructor and Description |
---|
DefaultTraceEventMessage(Date timestamp,
ProcessorDefinition<?> toNode,
Exchange exchange)
Deprecated.
Creates a
DefaultTraceEventMessage based on the given node it was traced while processing
the current Exchange |
Modifier and Type | Method and Description |
---|---|
protected Exchange |
TopicLoadBalancer.copyExchangeStrategy(Processor processor,
Exchange exchange)
Strategy method to copy the exchange before sending to another endpoint.
|
protected Exchange |
FailOverLoadBalancer.prepareExchangeForFailover(Exchange exchange)
Prepares the exchange for failover
|
Modifier and Type | Method and Description |
---|---|
protected Processor |
RandomLoadBalancer.chooseProcessor(List<Processor> processors,
Exchange exchange) |
protected Processor |
StickyLoadBalancer.chooseProcessor(List<Processor> processors,
Exchange exchange) |
protected abstract Processor |
QueueLoadBalancer.chooseProcessor(List<Processor> processors,
Exchange exchange) |
protected Processor |
RoundRobinLoadBalancer.chooseProcessor(List<Processor> processors,
Exchange exchange) |
protected Processor |
WeightedRandomLoadBalancer.chooseProcessor(List<Processor> processors,
Exchange exchange) |
protected Processor |
WeightedRoundRobinLoadBalancer.chooseProcessor(List<Processor> processors,
Exchange exchange) |
protected Exchange |
TopicLoadBalancer.copyExchangeStrategy(Processor processor,
Exchange exchange)
Strategy method to copy the exchange before sending to another endpoint.
|
protected boolean |
CircuitBreakerLoadBalancer.hasFailed(Exchange exchange)
Deprecated.
Has the given Exchange failed
|
protected Exchange |
FailOverLoadBalancer.prepareExchangeForFailover(Exchange exchange)
Prepares the exchange for failover
|
void |
LoadBalancerSupport.process(Exchange exchange) |
abstract void |
SimpleLoadBalancerSupport.process(Exchange exchange) |
boolean |
QueueLoadBalancer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
TopicLoadBalancer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SimpleLoadBalancerSupport.process(Exchange exchange,
AsyncCallback callback) |
boolean |
FailOverLoadBalancer.process(Exchange exchange,
AsyncCallback callback) |
boolean |
CircuitBreakerLoadBalancer.process(Exchange exchange,
AsyncCallback callback)
Deprecated.
|
protected boolean |
FailOverLoadBalancer.shouldFailOver(Exchange exchange)
Should the given failed Exchange failover?
|
Modifier and Type | Method and Description |
---|---|
int |
DefaultExchangeComparator.compare(Exchange o1,
Exchange o2) |
boolean |
DefaultExchangeComparator.isValid(Exchange exchange) |
boolean |
DefaultExchangeComparator.predecessor(Exchange o1,
Exchange o2) |
boolean |
DefaultExchangeComparator.successor(Exchange o1,
Exchange o2) |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<CamelSagaCoordinator> |
SagaProcessor.getCurrentSagaCoordinator(Exchange exchange) |
protected void |
SagaProcessor.handleSagaCompletion(Exchange exchange,
CamelSagaCoordinator coordinator,
CamelSagaCoordinator previousCoordinator,
AsyncCallback callback) |
protected void |
SagaProcessor.ifNotException(Throwable ex,
Exchange exchange,
AsyncCallback callback,
Runnable code) |
protected void |
SagaProcessor.ifNotException(Throwable ex,
Exchange exchange,
boolean handleCompletion,
CamelSagaCoordinator coordinator,
CamelSagaCoordinator previousCoordinator,
AsyncCallback callback,
Runnable code) |
boolean |
MandatorySagaProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
NeverSagaProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
NotSupportedSagaProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RequiresNewSagaProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
RequiredSagaProcessor.process(Exchange exchange,
AsyncCallback callback) |
boolean |
SupportsSagaProcessor.process(Exchange exchange,
AsyncCallback callback) |
protected void |
SagaProcessor.setCurrentSagaCoordinator(Exchange exchange,
CamelSagaCoordinator coordinator) |
Modifier and Type | Method and Description |
---|---|
protected static String |
PredicateValidationException.buildMessage(Predicate predicate,
Exchange exchange) |
protected void |
ValidatingProcessor.doProcess(Exchange exchange) |
protected Source |
ValidatingProcessor.getSource(Exchange exchange,
Object content)
|
void |
DefaultValidationErrorHandler.handleErrors(Exchange exchange,
Object schema) |
void |
DefaultValidationErrorHandler.handleErrors(Exchange exchange,
Schema schema,
Result result) |
void |
ValidatorErrorHandler.handleErrors(Exchange exchange,
Schema schema,
Result result)
Process any errors which may have occurred during validation
|
protected boolean |
ValidatingProcessor.isInputStreamNeeded(Exchange exchange)
Checks whether we need an
InputStream to access the message body or header. |
void |
ValidatingProcessor.process(Exchange exchange) |
void |
PredicateValidatingProcessor.process(Exchange exchange) |
boolean |
ValidatingProcessor.process(Exchange exchange,
AsyncCallback callback) |
Constructor and Description |
---|
NoXmlBodyValidationException(Exchange exchange) |
NoXmlBodyValidationException(Exchange exchange,
Throwable cause) |
NoXmlHeaderValidationException(Exchange exchange,
String header) |
NoXmlHeaderValidationException(Exchange exchange,
String header,
Throwable cause) |
PredicateValidationException(Exchange exchange,
Predicate predicate) |
SchemaValidationException(Exchange exchange,
Object schema,
List<SAXParseException> fatalErrors,
List<SAXParseException> errors,
List<SAXParseException> warnings) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
CamelSagaCoordinator.beginStep(Exchange exchange,
CamelSagaStep step) |
Modifier and Type | Method and Description |
---|---|
Exchange |
AggregationRepository.add(CamelContext camelContext,
String key,
Exchange exchange)
Add the given
Exchange under the correlation key. |
Exchange |
OptimisticLockingAggregationRepository.add(CamelContext camelContext,
String key,
Exchange oldExchange,
Exchange newExchange)
Add the given
Exchange under the correlation key. |
Exchange |
AggregationRepository.get(CamelContext camelContext,
String key)
Gets the given exchange with the correlation key
This method is always invoked for any incoming exchange in the aggregator.
|
Exchange |
ClaimCheckRepository.get(String key)
Gets the exchange from the repository.
|
Exchange |
ClaimCheckRepository.getAndRemove(String key)
Gets and removes the exchange from the repository.
|
Exchange |
InflightRepository.InflightExchange.getExchange()
The exchange being inflight
|
Exchange |
AsyncProcessorAwaitManager.AwaitThread.getExchange()
The exchange being processed by the other thread.
|
Exchange |
ClaimCheckRepository.pop()
Pops the repository and returns the latest.
|
Exchange |
RecoverableAggregationRepository.recover(CamelContext camelContext,
String exchangeId)
Recovers the exchange with the given exchange id
|
Modifier and Type | Method and Description |
---|---|
List<Exchange> |
BrowsableEndpoint.getExchanges()
Return the exchanges available on this endpoint
|
Modifier and Type | Method and Description |
---|---|
Exchange |
AggregationRepository.add(CamelContext camelContext,
String key,
Exchange exchange)
Add the given
Exchange under the correlation key. |
Exchange |
OptimisticLockingAggregationRepository.add(CamelContext camelContext,
String key,
Exchange oldExchange,
Exchange newExchange)
Add the given
Exchange under the correlation key. |
void |
InflightRepository.add(Exchange exchange)
Adds the exchange to the inflight registry to the total counter
|
boolean |
ExchangeIdempotentRepository.add(Exchange exchange,
E key)
Adds the key to the repository.
|
void |
InflightRepository.add(Exchange exchange,
String routeId)
Adds the exchange to the inflight registry associated to the given route
|
boolean |
ClaimCheckRepository.add(String key,
Exchange exchange)
Adds the exchange to the repository.
|
void |
Breakpoint.afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
long timeTaken)
Callback invoked when the breakpoint was hit and the
Exchange has been processed (after). |
boolean |
Debugger.afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition,
long timeTaken)
Callback invoked when an
Exchange has been processed which allows implementators
to notify breakpoints. |
void |
UnitOfWork.afterProcess(Processor processor,
Exchange exchange,
AsyncCallback callback,
boolean doneSync)
Strategy for optional work to be executed after the processing
|
void |
UnitOfWork.afterRoute(Exchange exchange,
Route route)
Invoked when this unit of work is done being routed by the given route.
|
boolean |
HeaderFilterStrategy.applyFilterToCamelHeaders(String headerName,
Object headerValue,
Exchange exchange)
Applies filtering logic to Camel Message header that is
going to be copied to target message such as CXF and JMS message.
|
boolean |
HeaderFilterStrategy.applyFilterToExternalHeaders(String headerName,
Object headerValue,
Exchange exchange)
Applies filtering logic to an external message header such
as CXF and JMS message that is going to be copied to Camel
message header.
|
void |
AsyncProcessorAwaitManager.await(Exchange exchange,
CountDownLatch latch)
Registers the exchange to await for the callback to be triggered by another thread which has taken over processing
this exchange.
|
void |
Breakpoint.beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition)
Callback invoked when the breakpoint was hit and the
Exchange is about to be processed (before). |
boolean |
Debugger.beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition)
Callback invoked when an
Exchange is about to be processed which allows implementators
to notify breakpoints. |
AsyncCallback |
UnitOfWork.beforeProcess(Processor processor,
Exchange exchange,
AsyncCallback callback)
Strategy for optional work to be execute before processing
For example the
MDCUnitOfWork leverages this
to ensure MDC is handled correctly during routing exchanges using the
asynchronous routing engine. |
void |
UnitOfWork.beforeRoute(Exchange exchange,
Route route)
Invoked when this unit of work is about to be routed by the given route.
|
void |
UnitOfWork.beginSubUnitOfWork(Exchange exchange)
Begins a
SubUnitOfWork , where sub (child) unit of works participate in a parent unit of work. |
StreamCache |
StreamCachingStrategy.cache(Exchange exchange)
Caches the body aas a
StreamCache . |
boolean |
ExchangeIdempotentRepository.confirm(Exchange exchange,
E key)
Confirms the key, after the exchange has been processed successfully.
|
boolean |
ExchangeIdempotentRepository.contains(Exchange exchange,
E key)
Returns true if this repository contains the specified element.
|
void |
AsyncProcessorAwaitManager.countDown(Exchange exchange,
CountDownLatch latch)
Triggered when the other thread is done processing the exchange, to signal to the waiting thread is done, and can take
over control to further process the exchange.
|
UnitOfWork |
UnitOfWork.createChildUnitOfWork(Exchange childExchange)
Create a child unit of work, which is associated to this unit of work as its parent.
|
EventObject |
EventFactory.createExchangeCompletedEvent(Exchange exchange)
Creates an
EventObject when an Exchange has been completed successfully |
EventObject |
EventFactory.createExchangeCreatedEvent(Exchange exchange)
Creates an
EventObject when an Exchange has been created |
EventObject |
EventFactory.createExchangeFailedEvent(Exchange exchange)
Creates an
EventObject when an Exchange has failed |
EventObject |
EventFactory.createExchangeFailureHandledEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri)
Creates an
EventObject when an Exchange has failed
but was handled by the Camel error handlers such as an dead letter channel, or a doTry .. |
EventObject |
EventFactory.createExchangeFailureHandlingEvent(Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri)
Creates an
EventObject when an Exchange has failed
but is being handled by the Camel error handlers such as an dead letter channel, or a doTry .. |
EventObject |
EventFactory.createExchangeRedeliveryEvent(Exchange exchange,
int attempt)
Creates an
EventObject when an Exchange is about to be redelivered |
EventObject |
EventFactory.createExchangeSendingEvent(Exchange exchange,
Endpoint endpoint)
Creates an
EventObject when an Exchange is about to be sent to the endpoint (eg before). |
EventObject |
EventFactory.createExchangeSentEvent(Exchange exchange,
Endpoint endpoint,
long timeTaken)
Creates an
EventObject when an Exchange has completely been sent to the endpoint (eg after). |
Processor |
SendDynamicAware.createPostProcessor(Exchange exchange,
SendDynamicAware.DynamicAwareEntry entry)
Creates an optional post
Processor that will be executed afterwards
when the message has been sent dynamic. |
Processor |
SendDynamicAware.createPreProcessor(Exchange exchange,
SendDynamicAware.DynamicAwareEntry entry)
|
UnitOfWork |
UnitOfWorkFactory.createUnitOfWork(Exchange exchange)
Creates a new
UnitOfWork |
void |
UnitOfWork.done(Exchange exchange)
Invoked when this unit of work has been completed, whether it has failed or completed
|
void |
UnitOfWork.endSubUnitOfWork(Exchange exchange)
Ends a
SubUnitOfWork . |
String |
ExchangeFormatter.format(Exchange exchange)
Generates a string representation of the exchange
|
void |
ExceptionHandler.handleException(String message,
Exchange exchange,
Throwable exception)
Handles the given exception
|
void |
UnitOfWork.handoverSynchronization(Exchange target)
Handover all the registered synchronizations to the target
Exchange . |
void |
UnitOfWork.handoverSynchronization(Exchange target,
Predicate<Synchronization> filter)
Handover all the registered synchronizations to the target
Exchange . |
void |
AsyncProcessorAwaitManager.interrupt(Exchange exchange)
To interrupt an exchange which may seem as stuck, to force the exchange to continue,
allowing any blocking thread to be released.
|
void |
DataFormat.marshal(Exchange exchange,
Object graph,
OutputStream stream)
Marshals the object to the given Stream.
|
boolean |
Condition.matchEvent(Exchange exchange,
EventObject event)
Does the condition match
|
boolean |
Condition.matchProcess(Exchange exchange,
Processor processor,
ProcessorDefinition<?> definition)
Does the condition match
|
void |
SynchronizationRouteAware.onAfterRoute(Route route,
Exchange exchange)
Invoked after the
Exchange has been routed by the given route. |
void |
SynchronizationRouteAware.onBeforeRoute(Route route,
Exchange exchange)
Invoked before the
Exchange is being routed by the given route. |
void |
Synchronization.onComplete(Exchange exchange)
Called when the processing of the message exchange is complete
|
void |
SubUnitOfWorkCallback.onDone(Exchange exchange)
The exchange is done.
|
boolean |
Debugger.onEvent(Exchange exchange,
EventObject event)
Callback invoked when an
Exchange is being processed which allows implementators
to notify breakpoints. |
void |
Breakpoint.onEvent(Exchange exchange,
EventObject event,
ProcessorDefinition<?> definition)
|
void |
RoutePolicy.onExchangeBegin(Route route,
Exchange exchange)
|
void |
RoutePolicy.onExchangeDone(Route route,
Exchange exchange)
|
void |
SubUnitOfWorkCallback.onExhausted(Exchange exchange)
The exchange is exhausted, by a redeliverable error handler.
|
void |
Synchronization.onFailure(Exchange exchange)
Called when the processing of the message exchange has failed for some reason.
|
String |
LogListener.onLog(Exchange exchange,
CamelLogger camelLogger,
String message)
Invoked right before Log component or Log EIP logs.
|
SendDynamicAware.DynamicAwareEntry |
SendDynamicAware.prepare(Exchange exchange,
String uri)
Prepares for using optimised dynamic to by parsing the uri and returning an entry of details that are
used for creating the pre and post processors, and the static uri.
|
void |
ClaimCheckRepository.push(Exchange exchange)
Pushes the exchange on top of the repository.
|
void |
AggregationRepository.remove(CamelContext camelContext,
String key,
Exchange exchange)
Removes the exchange with the given correlation key, which should happen
when an
Exchange is completed
Important: This method is not invoked if only one exchange was completed, and therefore
the exchange does not need to be added to a repository, as its completed immediately. |
void |
OptimisticLockingAggregationRepository.remove(CamelContext camelContext,
String key,
Exchange exchange)
Removes the given Exchange when both the supplied key and Exchange are present in the repository.
|
void |
InflightRepository.remove(Exchange exchange)
Removes the exchange from the inflight registry to the total counter
|
boolean |
ExchangeIdempotentRepository.remove(Exchange exchange,
E key)
Removes the key from the repository.
|
void |
InflightRepository.remove(Exchange exchange,
String routeId)
Removes the exchange from the inflight registry removing association to the given route
|
String |
SendDynamicAware.resolveStaticUri(Exchange exchange,
SendDynamicAware.DynamicAwareEntry entry)
|
Object |
DataFormat.unmarshal(Exchange exchange,
InputStream stream)
Unmarshals the given stream into an object.
|
Modifier and Type | Method and Description |
---|---|
protected abstract String |
ExpressionSupport.assertionFailureMessage(Exchange exchange) |
protected String |
ExpressionAdapter.assertionFailureMessage(Exchange exchange) |
void |
ExpressionSupport.assertMatches(String text,
Exchange exchange) |
protected Iterator<?> |
TokenXMLPairExpressionIterator.createIterator(Exchange exchange,
InputStream in,
String charset)
Deprecated.
|
protected Iterator<?> |
TokenXMLExpressionIterator.createIterator(Exchange exchange,
InputStream in,
String charset) |
protected Iterator<?> |
TokenPairExpressionIterator.createIterator(Exchange exchange,
InputStream in,
String charset)
Strategy to create the iterator
|
protected Object |
TokenXMLExpressionIterator.doEvaluate(Exchange exchange,
boolean closeStream)
Strategy to evaluate the exchange
|
protected Object |
TokenPairExpressionIterator.doEvaluate(Exchange exchange,
boolean closeStream)
Strategy to evaluate the exchange
|
protected Object |
XMLTokenExpressionIterator.doEvaluate(Exchange exchange,
boolean closeStream)
Strategy to evaluate the exchange
|
Object |
ExpressionSupport.evaluate(Exchange exchange) |
Object |
TokenXMLExpressionIterator.evaluate(Exchange exchange) |
Object |
TokenPairExpressionIterator.evaluate(Exchange exchange) |
Object |
XMLTokenExpressionIterator.evaluate(Exchange exchange) |
Object |
ServiceCallExpressionSupport.evaluate(Exchange exchange) |
<T> T |
ExpressionAdapter.evaluate(Exchange exchange,
Class<T> type) |
void |
LoggingExceptionHandler.handleException(String message,
Exchange exchange,
Throwable exception) |
<T> T |
TypeConverterSupport.mandatoryConvertTo(Class<T> type,
Exchange exchange,
Object value) |
boolean |
ExpressionSupport.matches(Exchange exchange) |
boolean |
TokenXMLExpressionIterator.matches(Exchange exchange) |
boolean |
TokenPairExpressionIterator.matches(Exchange exchange) |
boolean |
XMLTokenExpressionIterator.matches(Exchange exchange) |
void |
SynchronizationAdapter.onAfterRoute(Route route,
Exchange exchange) |
void |
SynchronizationAdapter.onBeforeRoute(Route route,
Exchange exchange) |
void |
SynchronizationAdapter.onComplete(Exchange exchange) |
void |
SynchronizationAdapter.onDone(Exchange exchange) |
void |
RoutePolicySupport.onExchangeBegin(Route route,
Exchange exchange) |
void |
RoutePolicySupport.onExchangeDone(Route route,
Exchange exchange) |
void |
SynchronizationAdapter.onFailure(Exchange exchange) |
<T> T |
TypeConverterSupport.tryConvertTo(Class<T> type,
Exchange exchange,
Object value) |
Modifier and Type | Method and Description |
---|---|
static Exchange |
ExchangeHelper.copyExchangeAndSetCamelContext(Exchange exchange,
CamelContext context)
Copies the exchange but the copy will be tied to the given context
|
static Exchange |
ExchangeHelper.copyExchangeAndSetCamelContext(Exchange exchange,
CamelContext context,
boolean handover)
Copies the exchange but the copy will be tied to the given context
|
static Exchange |
ExchangeHelper.createCopy(Exchange exchange,
boolean preserveExchangeId)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.createCorrelatedCopy(Exchange exchange,
boolean handover)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.createCorrelatedCopy(Exchange exchange,
boolean handover,
boolean useSameMessageId)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.createCorrelatedCopy(Exchange exchange,
boolean handover,
boolean useSameMessageId,
Predicate<Synchronization> filter)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.getExchangeById(Iterable<Exchange> exchanges,
String exchangeId)
Returns the first exchange in the given collection of exchanges which has the same exchange ID as the one given
or null if none could be found
|
Modifier and Type | Method and Description |
---|---|
static void |
UnitOfWorkHelper.afterRouteSynchronizations(Route route,
Exchange exchange,
List<Synchronization> synchronizations,
org.slf4j.Logger log) |
static void |
PredicateAssertHelper.assertMatches(Predicate predicate,
String text,
Exchange exchange) |
static void |
UnitOfWorkHelper.beforeRouteSynchronizations(Route route,
Exchange exchange,
List<Synchronization> synchronizations,
org.slf4j.Logger log) |
static Object |
ObjectHelper.callWithTCCL(Callable<?> call,
Exchange exchange)
Calling the Callable with the setting of TCCL with the camel context application classloader.
|
int |
ExpressionComparator.compare(Exchange e1,
Exchange e2) |
int |
ExpressionListComparator.compare(Exchange e1,
Exchange e2) |
static <T> T |
ExchangeHelper.convertToMandatoryType(Exchange exchange,
Class<T> type,
Object value)
Converts the value to the given expected type or throws an exception
|
static <T> T |
ExchangeHelper.convertToType(Exchange exchange,
Class<T> type,
Object value)
Converts the value to the given expected type
|
static Exchange |
ExchangeHelper.copyExchangeAndSetCamelContext(Exchange exchange,
CamelContext context)
Copies the exchange but the copy will be tied to the given context
|
static Exchange |
ExchangeHelper.copyExchangeAndSetCamelContext(Exchange exchange,
CamelContext context,
boolean handover)
Copies the exchange but the copy will be tied to the given context
|
static void |
ExchangeHelper.copyResults(Exchange result,
Exchange source)
Copies the results of a message exchange from the source exchange to the result exchange
which will copy the message contents, exchange properties and the exception.
|
static void |
ExchangeHelper.copyResultsPreservePattern(Exchange result,
Exchange source)
|
static Exchange |
ExchangeHelper.createCopy(Exchange exchange,
boolean preserveExchangeId)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.createCorrelatedCopy(Exchange exchange,
boolean handover)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.createCorrelatedCopy(Exchange exchange,
boolean handover,
boolean useSameMessageId)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static Exchange |
ExchangeHelper.createCorrelatedCopy(Exchange exchange,
boolean handover,
boolean useSameMessageId,
Predicate<Synchronization> filter)
Creates a new instance and copies from the current message exchange so that it can be
forwarded to another destination as a new instance.
|
static String |
ExchangeHelper.createExceptionMessage(String message,
Exchange exchange,
Throwable cause)
Deprecated.
use org.apache.camel.CamelExchangeException.createExceptionMessage instead
|
static UnitOfWork |
UnitOfWorkHelper.createUoW(Exchange exchange)
Deprecated.
use
CamelContext.getUnitOfWorkFactory() instead. |
static Map<String,Object> |
ExchangeHelper.createVariableMap(Exchange exchange)
Creates a Map of the variables which are made available to a script or template
|
static String |
MessageHelper.doDumpMessageHistoryStacktrace(Exchange exchange,
ExchangeFormatter exchangeFormatter,
boolean logStackTrace) |
static void |
UnitOfWorkHelper.doneSynchronizations(Exchange exchange,
List<Synchronization> synchronizations,
org.slf4j.Logger log) |
static void |
UnitOfWorkHelper.doneUow(UnitOfWork uow,
Exchange exchange)
Done and stop the
UnitOfWork . |
static String |
MessageHelper.dumpMessageHistoryStacktrace(Exchange exchange,
ExchangeFormatter exchangeFormatter,
boolean logStackTrace)
Dumps the
MessageHistory from the Exchange in a human readable format. |
<T> T |
PredicateToExpressionAdapter.evaluate(Exchange exchange,
Class<T> type) |
static Object |
ExchangeHelper.extractResultBody(Exchange exchange,
ExchangePattern pattern)
Extracts the body from the given exchange.
|
static <T> T |
ExchangeHelper.getBinding(Exchange exchange,
Class<T> type)
Extracts the Exchange.BINDING of the given type or null if not present
|
static String |
IOHelper.getCharsetName(Exchange exchange) |
static String |
IOHelper.getCharsetName(Exchange exchange,
boolean useDefault)
Gets the charset name if set as header or property
CHARSET_NAME . |
static String |
ExchangeHelper.getContentEncoding(Exchange exchange)
Returns the MIME content encoding on the input message or null if one is not defined
|
static String |
ExchangeHelper.getContentType(Exchange exchange)
Returns the MIME content type on the input message or null if one is not defined
|
static <T> T |
ExchangeHelper.getHeaderOrProperty(Exchange exchange,
String name,
Class<T> type)
Gets an header or property of the correct type
|
static <T> T |
ExchangeHelper.getMandatoryHeader(Exchange exchange,
String headerName,
Class<T> type)
Gets the mandatory inbound header of the correct type
|
static Object |
ExchangeHelper.getMandatoryInBody(Exchange exchange)
Deprecated.
|
static <T> T |
ExchangeHelper.getMandatoryInBody(Exchange exchange,
Class<T> type)
Deprecated.
|
static Object |
ExchangeHelper.getMandatoryOutBody(Exchange exchange)
Deprecated.
|
static <T> T |
ExchangeHelper.getMandatoryOutBody(Exchange exchange,
Class<T> type)
Deprecated.
|
static <T> T |
ExchangeHelper.getMandatoryProperty(Exchange exchange,
String propertyName,
Class<T> type)
Gets the mandatory property of the exchange of the correct type
|
static Message |
ExchangeHelper.getOriginalInMessage(Exchange exchange)
Gets the original IN
Message this Unit of Work was started with. |
static Message |
ExchangeHelper.getResultMessage(Exchange exchange)
Returns the message where to write results in an
exchange-pattern-sensitive way.
|
static Scanner |
ObjectHelper.getScanner(Exchange exchange,
Object value,
String delimiter)
Creates a
Scanner for scanning the given value. |
static boolean |
ExchangeHelper.hasExceptionBeenHandledByErrorHandler(Exchange exchange)
Tests whether the exchange has already been handled by the error handler
|
static boolean |
ExchangeHelper.hasFaultMessage(Exchange exchange)
Tests whether the exchange has a fault message set and that its not null.
|
static boolean |
ExchangeHelper.isFailureHandled(Exchange exchange)
Checks whether the exchange has been failure handed
|
static boolean |
GZIPHelper.isGzip(String header,
Exchange exchange) |
static boolean |
ExchangeHelper.isInterrupted(Exchange exchange)
Checks whether the exchange
UnitOfWork has been interrupted during processing |
static boolean |
ExchangeHelper.isOutCapable(Exchange exchange)
Returns true if the given exchange pattern (if defined) can support OUT messages
|
static boolean |
ExchangeHelper.isRedelivered(Exchange exchange)
Checks whether the exchange
UnitOfWork is redelivered |
static boolean |
ExchangeHelper.isRedeliveryExhausted(Exchange exchange)
Checks whether the exchange is redelivery exhausted
|
static boolean |
ExchangeHelper.isStreamCachingEnabled(Exchange exchange)
Check whether or not stream caching is enabled for the given route or globally.
|
static boolean |
ExchangeHelper.isUnitOfWorkExhausted(Exchange exchange)
Checks whether the exchange
UnitOfWork is exhausted |
static String |
ExchangeHelper.logIds(Exchange exchange)
Gets both the messageId and exchangeId to be used for logging purposes.
|
static Object |
ExchangeHelper.lookupBean(Exchange exchange,
String name)
Performs a lookup in the registry of the bean name
|
static <T> T |
ExchangeHelper.lookupBean(Exchange exchange,
String name,
Class<T> type)
Performs a lookup in the registry of the bean name and type
|
static Object |
ExchangeHelper.lookupMandatoryBean(Exchange exchange,
String name)
Performs a lookup in the registry of the mandatory bean name and throws an exception if it could not be found
|
static <T> T |
ExchangeHelper.lookupMandatoryBean(Exchange exchange,
String name,
Class<T> type)
Performs a lookup in the registry of the mandatory bean name and throws an exception if it could not be found
|
boolean |
ExpressionToPredicateAdapter.matches(Exchange exchange) |
static <T> T |
ExchangeHelper.newInstance(Exchange exchange,
Class<T> type)
Creates a new instance of the given type from the injector
|
static boolean |
EventHelper.notifyExchangeCreated(CamelContext context,
Exchange exchange) |
static boolean |
EventHelper.notifyExchangeDone(CamelContext context,
Exchange exchange) |
static boolean |
EventHelper.notifyExchangeFailed(CamelContext context,
Exchange exchange) |
static boolean |
EventHelper.notifyExchangeFailureHandled(CamelContext context,
Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri) |
static boolean |
EventHelper.notifyExchangeFailureHandling(CamelContext context,
Exchange exchange,
Processor failureHandler,
boolean deadLetterChannel,
String deadLetterUri) |
static boolean |
EventHelper.notifyExchangeRedelivery(CamelContext context,
Exchange exchange,
int attempt) |
static boolean |
EventHelper.notifyExchangeSending(CamelContext context,
Exchange exchange,
Endpoint endpoint) |
static boolean |
EventHelper.notifyExchangeSent(CamelContext context,
Exchange exchange,
Endpoint endpoint,
long timeTaken) |
static void |
ExchangeHelper.populateVariableMap(Exchange exchange,
Map<String,Object> map)
Populates the Map with the variables which are made available to a script or template
|
static void |
ExchangeHelper.prepareAggregation(Exchange oldExchange,
Exchange newExchange)
Prepares the exchanges for aggregation.
|
static void |
ExchangeHelper.prepareOutToIn(Exchange exchange)
Strategy to prepare results before next iterator or when we are complete,
which is done by copying OUT to IN, so there is only an IN as input
for the next iteration.
|
static void |
AsyncProcessorHelper.process(AsyncProcessor processor,
Exchange exchange)
Calls the async version of the processor's process method and waits
for it to complete before returning.
|
static boolean |
AsyncProcessorHelper.process(AsyncProcessor processor,
Exchange exchange,
AsyncCallback callback)
Deprecated.
should no longer be needed, instead invoke the process method on the
AsyncProcessor directly,
instead of using this method. |
static void |
ExchangeHelper.replaceMessage(Exchange exchange,
Message newMessage,
boolean outOnly)
Replaces the existing message with the new message
|
static Endpoint |
ExchangeHelper.resolveEndpoint(Exchange exchange,
Object value)
Attempts to resolve the endpoint for the given value
|
static String |
ResourceHelper.resolveOptionalExternalScript(CamelContext camelContext,
Exchange exchange,
String expression)
Resolves the expression/predicate whether it refers to an external script on the file/classpath etc.
|
static void |
ExchangeHelper.setFailureHandled(Exchange exchange)
Sets the exchange to be failure handled.
|
static CamelExecutionException |
ObjectHelper.wrapCamelExecutionException(Exchange exchange,
Throwable e)
Wraps the caused exception in a
CamelExecutionException if its not
already such an exception. |
Modifier and Type | Method and Description |
---|---|
static Exchange |
ExchangeHelper.getExchangeById(Iterable<Exchange> exchanges,
String exchangeId)
Returns the first exchange in the given collection of exchanges which has the same exchange ID as the one given
or null if none could be found
|
Constructor and Description |
---|
GroupIterator(Exchange exchange,
Iterator<?> it,
int group)
Creates a new group iterator
|
GroupIterator(Exchange exchange,
Iterator<?> it,
int group,
boolean skipFirst)
Creates a new group iterator
|
GroupTokenIterator(Exchange exchange,
Iterator<?> it,
String token,
int group,
boolean skipFirst)
Creates a new token based group iterator
|
SkipIterator(Exchange exchange,
Iterator<?> it,
int skip)
Creates a new skip iterator
|
Modifier and Type | Method and Description |
---|---|
protected ApiMethod |
AbstractApiProducer.findMethod(Exchange exchange,
Map<String,Object> properties) |
Map<String,Object> |
ApiMethodPropertiesHelper.getExchangeProperties(Exchange exchange,
Map<String,Object> properties)
Gets exchange header properties that start with propertyPrefix.
|
void |
AbstractApiProducer.interceptResult(Object methodResult,
Exchange resultExchange) |
void |
ResultInterceptor.interceptResult(Object result,
Exchange resultExchange)
Do additional result exchange processing, for example, adding custom headers.
|
void |
AbstractApiConsumer.interceptResult(Object result,
Exchange resultExchange) |
boolean |
AbstractApiProducer.process(Exchange exchange,
AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
Exchange |
FlexibleAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
XsltAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Modifier and Type | Method and Description |
---|---|
Exchange |
FlexibleAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
Exchange |
XsltAggregationStrategy.aggregate(Exchange oldExchange,
Exchange newExchange) |
void |
FlexibleAggregationStrategy.onCompletion(Exchange exchange) |
void |
FlexibleAggregationStrategy.CompletionAwareMixin.onCompletion(Exchange exchange) |
void |
FlexibleAggregationStrategy.timeout(Exchange oldExchange,
int index,
int total,
long timeout) |
void |
FlexibleAggregationStrategy.TimeoutAwareMixin.timeout(Exchange exchange,
int index,
int total,
long timeout) |
Apache Camel