Skip to main content

Module exchange

Module exchange 

Source

Structs§

Exchange
An Exchange represents a message being routed through the framework.
OriginalContentTypeInherited
Marker-presence snapshot stored under ORIGINAL_CONTENT_TYPE_INHERITED_EXTENSION. Stored as Arc<OriginalContentTypeInherited> via Exchange::set_extension.

Enums§

ExchangePattern
The exchange pattern (fire-and-forget or request-reply). exhaustive-by-contract: the InOnly|InOut MEP dichotomy is a fixed, spec-level closed set.

Constants§

CAMEL_STOP
Pipeline-executor-recognized stop signal. Set by processors (ThrottleStrategy::Drop, SamplingService) that cannot return PipelineOutcome::Stopped directly because they are Tower Service<Exchange> (Process mode), not OutcomePipeline (Segment). The executor checks this after each step completion. See ADR-0024 amendment.
ORIGINAL_CONTENT_TYPE_INHERITED_EXTENSION
Extension key for the Content-Type provenance snapshot taken with ORIGINAL_MESSAGE_EXTENSION at route entry when use_original_message is enabled. Capture replaces the snapshot unconditionally; restore reads it to rebuild the inherited marker.
ORIGINAL_MESSAGE_EXTENSION
Extension key used by use_original_message: stashes the pre-route Message so the error handler can restore body+headers before DLC dispatch.
PROPERTY_EXCEPTION_CAUGHT
Property key for the caught exception (Java Camel parity alias).
PROPERTY_EXCEPTION_HANDLED
Property key set when an exception has been handled (Java Camel parity).
PROPERTY_EXCEPTION_KIND
Property key for the exception kind (error variant name via classify()).
PROPERTY_EXCEPTION_MESSAGE
Property key for the exception message (error Display string).
PROPERTY_HTTP_CONTENT_TYPE_INHERITED
Exchange property marking that the current Content-Type was inherited from the incoming request rather than written by a route step.

Functions§

is_camel_stop
Check whether the exchange carries the CamelStop signal.