Uses of Interface
org.apache.camel.Exchange
-
Packages that use Exchange Package Description org.apache.camel The core Camel API.org.apache.camel.cloud Camel cloudorg.apache.camel.spi Service Provider Interfaces used by the Camel runtime which are plugin strategies. -
-
Uses of Exchange in org.apache.camel
Subinterfaces of Exchange in org.apache.camel Modifier and Type Interface Description interfaceExtendedExchangeExtendedExchangewhich contains the methods and APIs that are not intended for Camel end users but used internally by Camel for optimization purposes, SPI, custom components, or more advanced used-cases with Camel.interfacePooledExchangePooledExchangewhich contains the methods and APIs that are not intended for Camel end users but used internally by Camel for optimizing memory footprint by reusing exchanges created byConsumers viaExchangeFactory.Methods in org.apache.camel with type parameters of type Exchange Modifier and Type Method Description <T extends Exchange>
TExchange. adapt(Class<T> type)Adapts thisExchangeto the specialized type.Methods in org.apache.camel that return Exchange Modifier and Type Method Description ExchangeAggregationStrategy. aggregate(Exchange oldExchange, Exchange newExchange)Aggregates an old and new exchange together to create a single combined exchangedefault ExchangeAggregationStrategy. aggregate(Exchange oldExchange, Exchange newExchange, Exchange inputExchange)Aggregates an old and new exchange together to create a single combined exchange.ExchangeExchange. copy()Creates a copy of the current message exchange so that it can be forwarded to another destinationExchangeConsumer. createExchange(boolean autoRelease)Creates anExchangethat was consumed.ExchangeEndpoint. createExchange()Create a new exchange for communicating with this endpoint.ExchangeEndpoint. createExchange(ExchangePattern pattern)Create a new exchange for communicating with this endpoint with the specifiedExchangePatternsuch as whether its going to be anExchangePattern.InOnlyorExchangePattern.InOutexchangeExchangeCamelExchangeException. getExchange()Returns the exchange which caused the exceptionExchangeExpectedBodyTypeException. getExchange()ExchangeExpressionEvaluationException. getExchange()ExchangeMessage. getExchange()Returns the exchange this message is related toExchangeRuntimeExchangeException. getExchange()Returns the exchange which caused the exceptionExchangeConsumerTemplate. receive(String endpointUri)Receives from the endpoint, waiting until there is a responseExchangeConsumerTemplate. receive(String endpointUri, long timeout)Receives from the endpoint, waiting until there is a response or the timeout occursExchangeConsumerTemplate. receive(Endpoint endpoint)Receives from the endpoint, waiting until there is a response.ExchangeConsumerTemplate. receive(Endpoint endpoint, long timeout)Receives from the endpoint, waiting until there is a response or the timeout occursExchangePollingConsumer. receive()Waits until a message is available and then returns it.ExchangePollingConsumer. receive(long timeout)Attempts to receive a message exchange, waiting up to the given timeout to expire if a message is not yet available.ExchangeConsumerTemplate. receiveNoWait(String endpointUri)Receives from the endpoint, not waiting for a response if non exists.ExchangeConsumerTemplate. receiveNoWait(Endpoint endpoint)Receives from the endpoint, not waiting for a response if non exists.ExchangePollingConsumer. receiveNoWait()Attempts to receive a message exchange immediately without waiting and returning null if a message exchange is not available yet.ExchangeProducerTemplate. request(String endpointUri, Processor processor)Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.InOutmessage exchange pattern.ExchangeProducerTemplate. request(Endpoint endpoint, Processor processor)Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.InOutmessage exchange pattern.ExchangeFluentProducerTemplate. send()Send to an endpoint (InOnly)ExchangeProducerTemplate. send(String endpointUri, Exchange exchange)Sends the exchange to the given endpoint
ExchangeProducerTemplate. send(String endpointUri, ExchangePattern pattern, Processor processor)Sends an exchange to an endpoint using a supplied processor
ExchangeProducerTemplate. send(String endpointUri, Processor processor)Sends an exchange to an endpoint using a supplied processor
ExchangeProducerTemplate. send(Endpoint endpoint, Exchange exchange)Sends the exchange to the given endpoint
ExchangeProducerTemplate. send(Endpoint endpoint, ExchangePattern pattern, Processor processor)Sends an exchange to an endpoint using a supplied processor
ExchangeProducerTemplate. send(Endpoint endpoint, ExchangePattern pattern, Processor processor, Processor resultProcessor)Sends an exchange to an endpoint using a supplied processor
ExchangeProducerTemplate. send(Endpoint endpoint, Processor processor)Sends an exchange to an endpoint using a supplied processor
ExchangeProducerTemplate. 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 usinggetException().ExchangeProducerTemplate. 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 usinggetException().Methods in org.apache.camel that return types with arguments of type Exchange Modifier and Type Method Description CompletableFuture<Exchange>ProducerTemplate. asyncCallback(String endpointUri, Exchange exchange, Synchronization onCompletion)Deprecated.CompletableFuture<Exchange>ProducerTemplate. asyncCallback(String endpointUri, Processor processor, Synchronization onCompletion)Deprecated.CompletableFuture<Exchange>ProducerTemplate. asyncCallback(Endpoint endpoint, Exchange exchange, Synchronization onCompletion)Deprecated.CompletableFuture<Exchange>ProducerTemplate. asyncCallback(Endpoint endpoint, Processor processor, Synchronization onCompletion)Deprecated.Future<Exchange>FluentProducerTemplate. asyncSend()Sends asynchronously to the given endpoint (InOnly).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.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>AsyncProcessor. processAsync(Exchange exchange)Methods in org.apache.camel with parameters of type Exchange Modifier and Type Method Description ExchangeAggregationStrategy. aggregate(Exchange oldExchange, Exchange newExchange)Aggregates an old and new exchange together to create a single combined exchangedefault ExchangeAggregationStrategy. aggregate(Exchange oldExchange, Exchange newExchange, Exchange inputExchange)Aggregates an old and new exchange together to create a single combined exchange.CompletableFuture<Exchange>ProducerTemplate. asyncCallback(String endpointUri, Exchange exchange, Synchronization onCompletion)Deprecated.CompletableFuture<Exchange>ProducerTemplate. asyncCallback(Endpoint endpoint, Exchange exchange, Synchronization onCompletion)Deprecated.CompletableFuture<Exchange>ProducerTemplate. asyncSend(String endpointUri, Exchange exchange)Sends an asynchronous exchange to the given endpoint.CompletableFuture<Exchange>ProducerTemplate. asyncSend(Endpoint endpoint, Exchange exchange)Sends an asynchronous exchange to the given endpoint.voidEndpoint. configureExchange(Exchange exchange)Configures a newly createdExchange.<T> TTypeConverter. convertTo(Class<T> type, Exchange exchange, Object value)Converts the value to the specified type in the context of an exchangeStreamCacheStreamCache. copy(Exchange exchange)Create a copy of the stream.voidExtendedExchange. copyInternalProperties(Exchange target)To copy the internal properties from this exchange to the target exchangestatic StringCamelExchangeException. createExceptionMessage(String message, Exchange exchange, Throwable cause)Creates an exception message with the provided details.protected static StringRuntimeExchangeException. createMessage(String message, Exchange exchange)default AsyncCallbackConsumer. defaultConsumerCallback(Exchange exchange, boolean autoRelease)The default callback to use with the consumer when calling the processor using asynchronous routing.voidConsumerTemplate. doneUoW(Exchange exchange)<T> TExpression. evaluate(Exchange exchange, Class<T> type)Returns the value of the expression on the given exchangevoidExtendedExchange. handoverCompletions(Exchange target)Handover all the on completions from this exchange to the target exchange.protected static StringNoSuchHeaderOrPropertyException. header(Exchange exchange, String headerName)<T> TTypeConverter. mandatoryConvertTo(Class<T> type, Exchange exchange, Object value)Converts the value to the specified type in the context of an exchangebooleanPredicate. matches(Exchange exchange)Evaluates the predicate on the message exchange and returns true if this exchange matches the predicateStringBinaryPredicate. matchesReturningFailureMessage(Exchange exchange)Evaluates the predicate on the message exchange and returns null if this exchange matches the predicate.default voidAggregationStrategy. onCompletion(Exchange exchange)The aggregatedExchangehas completed Important: This method must not throw any exceptions.default voidAggregationStrategy. onCompletion(Exchange exchange, Exchange inputExchange)The aggregatedExchangehas completed Important: This method must not throw any exceptions.voidPooledExchange.OnDoneTask. onDone(Exchange exchange)default voidAggregationStrategy. onOptimisticLockFailure(Exchange oldExchange, Exchange newExchange)Callback when the aggregatedExchangefails to add in theOptimisticLockingAggregationRepositorybecause of anOptimisticLockingAggregationRepository.OptimisticLockingException.default booleanAggregationStrategy. 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.booleanAsyncProcessor. process(Exchange exchange, AsyncCallback callback)Processes the message exchange.voidProcessor. process(Exchange exchange)Processes the message exchangeCompletableFuture<Exchange>AsyncProcessor. processAsync(Exchange exchange)protected static StringNoSuchHeaderOrPropertyException. property(Exchange exchange, String propertyName)protected static StringNoSuchHeaderException. reason(Exchange exchange, String propertyName)protected static StringNoSuchPropertyException. reason(Exchange exchange, String propertyName)voidConsumer. releaseExchange(Exchange exchange, boolean autoRelease)Releases theExchangewhen its completed processing and no longer needed.ExchangeProducerTemplate. send(String endpointUri, Exchange exchange)Sends the exchange to the given endpoint
ExchangeProducerTemplate. send(Endpoint endpoint, Exchange exchange)Sends the exchange to the given endpoint
ExchangeProducerTemplate. 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 usinggetException().default voidAggregationStrategy. timeout(Exchange exchange, int index, int total, long timeout)A timeout occurred.<T> TTypeConverter. 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.FluentProducerTemplateFluentProducerTemplate. withExchange(Exchange exchange)Set the exchange to use for send.static CamelExecutionExceptionCamelExecutionException. wrapCamelExecutionException(Exchange exchange, Throwable e)Wraps the caused exception in aCamelExecutionExceptionif its not already such an exception.Method parameters in org.apache.camel with type arguments of type Exchange Modifier and Type Method Description FluentProducerTemplateFluentProducerTemplate. withExchange(Supplier<Exchange> exchangeSupplier)Set the exchangeSupplier which will be invoke to get the exchange to be used for send. -
Uses of Exchange in org.apache.camel.cloud
Methods in org.apache.camel.cloud with parameters of type Exchange Modifier and Type Method Description List<ServiceDefinition>ServiceFilter. apply(Exchange exchange, List<ServiceDefinition> services)Chooses service candidates to use<T> TServiceLoadBalancer. process(Exchange exchange, String serviceName, ServiceLoadBalancerFunction<T> function) -
Uses of Exchange in org.apache.camel.spi
Methods in org.apache.camel.spi that return Exchange Modifier and Type Method Description ExchangeAggregationRepository. add(CamelContext camelContext, String key, Exchange exchange)Add the givenExchangeunder the correlation key.ExchangeOptimisticLockingAggregationRepository. add(CamelContext camelContext, String key, Exchange oldExchange, Exchange newExchange)Add the givenExchangeunder the correlation key.ExchangeExchangeFactory. create(boolean autoRelease)Gets a newExchangeExchangeExchangeFactory. create(Endpoint fromEndpoint, boolean autoRelease)Gets a newExchangeExchangeProcessorExchangeFactory. create(Endpoint fromEndpoint, ExchangePattern exchangePattern)Gets a newExchangeExchangeProcessorExchangeFactory. createCopy(Exchange exchange)Gets a copy of the givenExchangeExchangeProcessorExchangeFactory. createCorrelatedCopy(Exchange exchange, boolean handover)Gets a copy of the givenExchangeand the copy is correlated to the sourceExchangeAggregationRepository. get(CamelContext camelContext, String key)Gets the given exchange with the correlation keyExchangeClaimCheckRepository. get(String key)Gets the exchange from the repository.ExchangeClaimCheckRepository. getAndRemove(String key)Gets and removes the exchange from the repository.ExchangeAsyncProcessorAwaitManager.AwaitThread. getExchange()The exchange being processed by the other thread.ExchangeCamelEvent.ExchangeEvent. getExchange()ExchangeInflightRepository.InflightExchange. getExchange()The exchange being inflightExchangeClaimCheckRepository. pop()Pops the repository and returns the latest.ExchangeConsumerCache. receive(Endpoint endpoint)Waits until a message is available and then returns it.ExchangeConsumerCache. receive(Endpoint endpoint, long timeout)Attempts to receive a message exchange, waiting up to the given timeout to expire if a message is not yet available.ExchangeConsumerCache. receiveNoWait(Endpoint endpoint)Attempts to receive a message exchange immediately without waiting and returning null if a message exchange is not available yet.ExchangeRecoverableAggregationRepository. recover(CamelContext camelContext, String exchangeId)Recovers the exchange with the given exchange idExchangeProducerCache. send(Endpoint endpoint, Exchange exchange, Processor resultProcessor)Sends the exchange to the given endpoint.Methods in org.apache.camel.spi that return types with arguments of type Exchange Modifier and Type Method Description 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 suppliedProcessorto populate the exchangeList<Exchange>BrowsableEndpoint. getExchanges()Return the exchanges available on this endpointMethods in org.apache.camel.spi with parameters of type Exchange Modifier and Type Method Description ExchangeAggregationRepository. add(CamelContext camelContext, String key, Exchange exchange)Add the givenExchangeunder the correlation key.booleanClaimCheckRepository. add(String key, Exchange exchange)Adds the exchange to the repository.default booleanIdempotentRepository. add(Exchange exchange, String key)Adds the key to the repository.voidInflightRepository. add(Exchange exchange)Adds the exchange to the inflight registry to the total countervoidInflightRepository. add(Exchange exchange, String routeId)Adds the exchange to the inflight registry associated to the given routeExchangeOptimisticLockingAggregationRepository. add(CamelContext camelContext, String key, Exchange oldExchange, Exchange newExchange)Add the givenExchangeunder the correlation key.voidCamelInternalProcessorAdvice. after(Exchange exchange, T data)Callback executed after processing a step in the route.voidManagementInterceptStrategy.InstrumentationProcessor. after(Exchange exchange, T data)voidBreakpoint. afterProcess(Exchange exchange, Processor processor, NamedNode definition, long timeTaken)Callback invoked when the breakpoint was hit and theExchangehas been processed (after).booleanDebugger. afterProcess(Exchange exchange, Processor processor, NamedNode definition, long timeTaken)Callback invoked when anExchangehas been processed which allows implementators to notify breakpoints.voidUnitOfWork. afterProcess(Processor processor, Exchange exchange, AsyncCallback callback, boolean doneSync)Strategy for work to be executed after the processingvoidUnitOfWork. afterRoute(Exchange exchange, Route route)Invoked when this unit of work is done being routed by the given route.booleanHeaderFilterStrategy. 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.booleanHeaderFilterStrategy. 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.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 suppliedProcessorto populate the exchangeTCamelInternalProcessorAdvice. before(Exchange exchange)Callback executed before processing a step in the route.TManagementInterceptStrategy.InstrumentationProcessor. before(Exchange exchange)voidSynchronizationVetoable. beforeHandover(Exchange target)A method to perform optional housekeeping when a Synchronization is being handed over.voidBreakpoint. beforeProcess(Exchange exchange, Processor processor, NamedNode definition)Callback invoked when the breakpoint was hit and theExchangeis about to be processed (before).booleanDebugger. beforeProcess(Exchange exchange, Processor processor, NamedNode definition)Callback invoked when anExchangeis about to be processed which allows implementators to notify breakpoints.AsyncCallbackUnitOfWork. beforeProcess(Processor processor, Exchange exchange, AsyncCallback callback)Strategy for work to be executed before processing.voidUnitOfWork. beforeRoute(Exchange exchange, Route route)Invoked when this unit of work is about to be routed by the given route.StreamCacheStreamCachingStrategy. cache(Exchange exchange)Caches the body aas aStreamCache.default booleanIdempotentRepository. confirm(Exchange exchange, String key)Confirms the key, after the exchange has been processed successfully.default booleanIdempotentRepository. contains(Exchange exchange, String key)Returns true if this repository contains the specified element.<T> TBulkTypeConverters. convertTo(Class<?> from, Class<T> to, Exchange exchange, Object value)Converts the value to the specified type in the context of an exchangedefault <T> TBulkTypeConverters. convertTo(Class<T> type, Exchange exchange, Object value)CamelEventEventFactory. createCamelExchangeAsyncProcessingStartedEvent(Exchange exchange)Creates anCamelEventwhen anExchangeasynchronous processing has been started.UnitOfWorkUnitOfWork. createChildUnitOfWork(Exchange childExchange)Create a child unit of work, which is associated to this unit of work as its parent.ExchangeProcessorExchangeFactory. createCopy(Exchange exchange)Gets a copy of the givenExchangeExchangeProcessorExchangeFactory. createCorrelatedCopy(Exchange exchange, boolean handover)Gets a copy of the givenExchangeand the copy is correlated to the sourceCamelEventEventFactory. createExchangeCompletedEvent(Exchange exchange)Creates anCamelEventwhen anExchangehas been completed successfullyCamelEventEventFactory. createExchangeCreatedEvent(Exchange exchange)Creates anCamelEventwhen anExchangehas been createdCamelEventEventFactory. createExchangeFailedEvent(Exchange exchange)Creates anCamelEventwhen anExchangehas failedCamelEventEventFactory. createExchangeFailureHandledEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)Creates anCamelEventwhen anExchangehas failed but was handled by the Camel error handlers such as an dead letter channel, or a doTry ..CamelEventEventFactory. createExchangeFailureHandlingEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri)Creates anCamelEventwhen anExchangehas failed but is being handled by the Camel error handlers such as an dead letter channel, or a doTry ..CamelEventEventFactory. createExchangeRedeliveryEvent(Exchange exchange, int attempt)Creates anCamelEventwhen anExchangeis about to be redeliveredCamelEventEventFactory. createExchangeSendingEvent(Exchange exchange, Endpoint endpoint)Creates anCamelEventwhen anExchangeis about to be sent to the endpoint (eg before).CamelEventEventFactory. createExchangeSentEvent(Exchange exchange, Endpoint endpoint, long timeTaken)Creates anCamelEventwhen anExchangehas completely been sent to the endpoint (eg after).ProcessorSendDynamicAware. createPostProcessor(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry)Creates an optional postProcessorthat will be executed afterwards when the message has been sent dynamic.ProcessorSendDynamicAware. createPreProcessor(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry)CamelEventEventFactory. createStepCompletedEvent(Exchange exchange, String stepId)Creates anCamelEventwhen a step has been completed successfullyCamelEventEventFactory. createStepFailedEvent(Exchange exchange, String stepId)Creates anCamelEventwhen a step has failedCamelEventEventFactory. createStepStartedEvent(Exchange exchange, String stepId)Creates anCamelEventwhen a step has been startedUnitOfWorkUnitOfWorkFactory. createUnitOfWork(Exchange exchange)Creates a newUnitOfWorkbooleanProducerCache.AsyncProducerCallback. doInAsyncProducer(AsyncProducer asyncProducer, Exchange exchange, AsyncCallback callback)Performs operation on the given producer to send the given exchange.booleanProducerCache. doInAsyncProducer(Endpoint endpoint, Exchange exchange, AsyncCallback callback, ProducerCache.AsyncProducerCallback producerCallback)Sends an exchange to an endpoint using a supplied callback supporting the asynchronous routing engine.voidUnitOfWork. done(Exchange exchange)Invoked when this unit of work has been completed, whether it has failed or completedStringExchangeFormatter. format(Exchange exchange)Generates a string representation of the exchangevoidExceptionHandler. handleException(String message, Exchange exchange, Throwable exception)Handles the given exceptionvoidUnitOfWork. handoverSynchronization(Exchange target)Handover all the registered synchronizations to the targetExchange.voidUnitOfWork. handoverSynchronization(Exchange target, Predicate<Synchronization> filter)Handover all the registered synchronizations to the targetExchange.voidAsyncProcessorAwaitManager. 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.ObjectInvokeOnHeaderStrategy. invoke(Object target, String key, Exchange exchange, AsyncCallback callback)Invoke the method based on the header keydefault <T> TBulkTypeConverters. mandatoryConvertTo(Class<?> from, Class<T> to, Exchange exchange, Object value)Converts the value to the specified type in the context of an exchangedefault <T> TBulkTypeConverters. mandatoryConvertTo(Class<T> type, Exchange exchange, Object value)voidDataFormat. marshal(Exchange exchange, Object graph, OutputStream stream)Marshals the object to the given Stream.booleanCondition. matchEvent(Exchange exchange, CamelEvent.ExchangeEvent event)Does the condition matchbooleanCondition. matchProcess(Exchange exchange, Processor processor, NamedNode definition)Does the condition matchMessageHistoryMessageHistoryFactory. newMessageHistory(String routeId, NamedNode node, long timestamp, Exchange exchange)Creates a newMessageHistoryExceptionPredicateExceptionFactory. newPredicateException(Exchange exchange, Predicate predicate, String nodeId)Allows to return a specific exception for the given predicate in case it failedvoidNotifyBuilderMatcher. notifyBuilderOnExchange(Exchange exchange)When an exchange was receivedvoidSynchronizationRouteAware. onAfterRoute(Route route, Exchange exchange)Invoked after theExchangehas been routed by the given route.voidSynchronizationRouteAware. onBeforeRoute(Route route, Exchange exchange)Invoked before theExchangeis being routed by the given route.voidSynchronization. onComplete(Exchange exchange)Called when the processing of the message exchange is completevoidBreakpoint. onEvent(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition)booleanDebugger. onEvent(Exchange exchange, CamelEvent.ExchangeEvent event)Callback invoked when anExchangeis being processed which allows implementators to notify breakpoints.voidRoutePolicy. onExchangeBegin(Route route, Exchange exchange)voidRoutePolicy. onExchangeDone(Route route, Exchange exchange)voidSynchronization. onFailure(Exchange exchange)Called when the processing of the message exchange has failed for some reason.StringLogListener. onLog(Exchange exchange, CamelLogger camelLogger, String message)Invoked right before Log component or Log EIP logs.booleanUnitOfWork. onPrepare(Exchange exchange)Prepares this unit of work with the given inputExchangeSendDynamicAware.DynamicAwareEntrySendDynamicAware. prepare(Exchange exchange, String uri, String originalUri)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.voidAsyncProcessorAwaitManager. process(AsyncProcessor processor, Exchange exchange)Process the given exchange synchronously.default voidSharedInternalProcessor. process(Exchange exchange)booleanSharedInternalProcessor. process(Exchange exchange, AsyncCallback originalCallback, AsyncProcessor processor, Processor resultProcessor)Asynchronous APIvoidSharedInternalProcessor. process(Exchange exchange, AsyncProcessor processor, Processor resultProcessor)Synchronous APIvoidClaimCheckRepository. push(Exchange exchange)Pushes the exchange on top of the repository.default booleanExchangeFactory. release(Exchange exchange)Releases the exchange back into the poolbooleanProcessorExchangeFactory. release(Exchange exchange)Releases the exchange back into the poolvoidAggregationRepository. remove(CamelContext camelContext, String key, Exchange exchange)Removes the exchange with the given correlation key, which should happen when anExchangeis completeddefault booleanIdempotentRepository. remove(Exchange exchange, String key)Removes the key from the repository.voidInflightRepository. remove(Exchange exchange)Removes the exchange from the inflight registry to the total countervoidInflightRepository. remove(Exchange exchange, String routeId)Removes the exchange from the inflight registry removing association to the given routevoidOptimisticLockingAggregationRepository. remove(CamelContext camelContext, String key, Exchange exchange)Removes the given Exchange when both the supplied key and Exchange are present in the repository.StringSendDynamicAware. resolveStaticUri(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry)ExchangeProducerCache. send(Endpoint endpoint, Exchange exchange, Processor resultProcessor)Sends the exchange to the given endpoint.voidTracer. traceAfterNode(NamedNode node, Exchange exchange)Trace after the given nodevoidTracer. traceAfterRoute(NamedRoute route, Exchange exchange)Trace after the route (eg output from route)voidTracer. traceAfterRoute(Route route, Exchange exchange)Deprecated.voidTracer. traceBeforeNode(NamedNode node, Exchange exchange)Trace before the given nodevoidTracer. traceBeforeRoute(NamedRoute route, Exchange exchange)Trace before the route (eg input to route)default <T> TBulkTypeConverters. tryConvertTo(Class<?> from, Class<T> to, Exchange exchange, Object value)Tries to convert the value to the specified type, returning null if not possible to convert.default <T> TBulkTypeConverters. tryConvertTo(Class<T> type, Exchange exchange, Object value)ObjectDataFormat. unmarshal(Exchange exchange, InputStream stream)Unmarshals the given stream into an object.Method parameters in org.apache.camel.spi with type arguments of type Exchange Modifier and Type Method Description 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 suppliedProcessorto populate the exchange
-