Class RouteDefinitionCamelDslExtensions
Apache Camel parity overloads for :
nested-lambda configurators for every scope-opener EIP (Filter, Choice, Loop, etc.) — the configurator runs against the opened scope and the parent route is returned;string-template (Simple language) overloads for expression-based methods;convenience overloads that accept a registry name (idempotent repositories).
All overloads are pure facades over the canonical surface;
they do not introduce new behaviour at runtime.
public static class RouteDefinitionCamelDslExtensions
Inheritance
Methods
Aggregate(IRouteDefinition, string, Func<IExchange, IExchange, IExchange>, string?, int?, TimeSpan?)
Aggregate from a correlation expression, with completion by condition, size, an inactivity
public static AggregateDefinition Aggregate(this IRouteDefinition self, string correlationExpression, Func<IExchange, IExchange, IExchange> aggregationStrategy, string? completionCondition = null, int? completionSize = null, TimeSpan? completionTimeout = null)
Choice(IRouteDefinition, Action<ChoiceDefinition>)
Apache Camel: opens a Choice scope, runs configure, then closes the scope.
public static IRouteDefinition Choice(this IRouteDefinition self, Action<ChoiceDefinition> configure)
CircuitBreaker(IRouteDefinition, Action<CircuitBreakerDefinition>)
Apache Camel: opens a CircuitBreaker scope and runs configure to set
public static IRouteDefinition CircuitBreaker(this IRouteDefinition self, Action<CircuitBreakerDefinition> configure)
Debounce(IRouteDefinition, string, TimeSpan)
Debounce keyed by a route-language expression ("header.deviceId").
public static DebounceDefinition Debounce(this IRouteDefinition self, string keyExpression, TimeSpan quietPeriod)
DynamicRouter(IRouteDefinition, string)
Dynamic Router from a route-language expression evaluated before every hop: the next URI,
public static IRouteDefinition DynamicRouter(this IRouteDefinition self, string routingExpression)
Filter(IRouteDefinition, Func<IExchange, bool>, Action<FilterDefinition>)
Apache Camel: opens a Filter scope, runs configure against it, then closes the scope.
public static IRouteDefinition Filter(this IRouteDefinition self, Func<IExchange, bool> predicate, Action<FilterDefinition> configure)
Filter(IRouteDefinition, IExpression, Action<FilterDefinition>)
Apache Camel: opens a Filter scope (expression predicate), runs configure, then closes the scope.
public static IRouteDefinition Filter(this IRouteDefinition self, IExpression expression, Action<FilterDefinition> configure)
Filter(IRouteDefinition, IPredicate, Action<FilterDefinition>)
Apache Camel: Filter using an with nested configurator.
public static IRouteDefinition Filter(this IRouteDefinition self, IPredicate predicate, Action<FilterDefinition> configure)
Filter(IRouteDefinition, string, Action<FilterDefinition>)
Apache Camel: Filter using a Simple condition plus a nested configurator.
public static IRouteDefinition Filter(this IRouteDefinition self, string simpleTemplate, Action<FilterDefinition> configure)
Filter(IRouteDefinition, string)
Apache Camel: Filter using a Simple language condition, either a template
public static FilterDefinition Filter(this IRouteDefinition self, string simpleTemplate)
Header(IRouteDefinition, string)
Guard: Header reader is only valid inside a Log() scope.
public static IRouteDefinition Header(this IRouteDefinition self, string headerName)
IdempotentConsumer(IRouteDefinition, Func<IExchange, string>, IIdempotentRepository, Action<IdempotentConsumerDefinition>)
Apache Camel idempotent consumer overload with nested configurator (repository instance).
public static IRouteDefinition IdempotentConsumer(this IRouteDefinition self, Func<IExchange, string> keyExtractor, IIdempotentRepository repository, Action<IdempotentConsumerDefinition> configure)
IdempotentConsumer(IRouteDefinition, Func<IExchange, string>, IIdempotentRepository, bool)
Apache Camel idempotent consumer overload (keyExtractor first, then repository instance).
public static IdempotentConsumerDefinition IdempotentConsumer(this IRouteDefinition self, Func<IExchange, string> keyExtractor, IIdempotentRepository repository, bool skipDuplicate = true)
IdempotentConsumer(IRouteDefinition, Func<IExchange, string>, string, Action<IdempotentConsumerDefinition>)
Apache Camel idempotent consumer overload with nested configurator (registry name).
public static IRouteDefinition IdempotentConsumer(this IRouteDefinition self, Func<IExchange, string> keyExtractor, string repositoryName, Action<IdempotentConsumerDefinition> configure)
IdempotentConsumer(IRouteDefinition, Func<IExchange, string>, string, bool)
Apache Camel idempotent consumer (keyExtractor + named registry).
public static IdempotentConsumerDefinition IdempotentConsumer(this IRouteDefinition self, Func<IExchange, string> keyExtractor, string repositoryName, bool skipDuplicate = true)
IdempotentConsumer(IRouteDefinition, IIdempotentRepository, Func<IExchange, string>, Action<IdempotentConsumerDefinition>)
Apache Camel idempotent consumer overload with nested configurator (repository, keyExtractor — canonical order).
public static IRouteDefinition IdempotentConsumer(this IRouteDefinition self, IIdempotentRepository repository, Func<IExchange, string> keyExtractor, Action<IdempotentConsumerDefinition> configure)
IdempotentConsumer(IRouteDefinition, string, string, bool)
Idempotent consumer from a key expression and a repository registry name.
public static IdempotentConsumerDefinition IdempotentConsumer(this IRouteDefinition self, string keyExpression, string repositoryName, bool skipDuplicate = true)
Loop(IRouteDefinition, Func<IExchange, bool>, Action<LoopDefinition>)
Apache Camel: opens a conditional Loop scope, runs configure, then closes it.
public static IRouteDefinition Loop(this IRouteDefinition self, Func<IExchange, bool> condition, Action<LoopDefinition> configure)
Loop(IRouteDefinition, Func<IExchange, int>, Action<LoopDefinition>)
Apache Camel: opens a count-by-factory Loop scope, runs configure, then closes it.
public static IRouteDefinition Loop(this IRouteDefinition self, Func<IExchange, int> countFactory, Action<LoopDefinition> configure)
Loop(IRouteDefinition, int, Action<LoopDefinition>, bool, bool)
Apache Camel: opens a fixed-iteration Loop scope, runs configure, then closes it.
public static IRouteDefinition Loop(this IRouteDefinition self, int count, Action<LoopDefinition> configure, bool copy = false, bool shareScope = true)
LoopExpression(IRouteDefinition, IExpression, Action<LoopDefinition>, bool, bool)
Apache Camel: LoopExpression with a nested configurator (IExpression overload).
public static IRouteDefinition LoopExpression(this IRouteDefinition self, IExpression expression, Action<LoopDefinition> configure, bool copy = false, bool shareScope = true)
LoopWhile(IRouteDefinition, string, Action<LoopDefinition>, bool, bool)
Apache Camel parity: LoopWhile with a nested configurator that runs against the opened scope.
public static IRouteDefinition LoopWhile(this IRouteDefinition self, string condition, Action<LoopDefinition> configure, bool copy = false, bool shareScope = true)
LoopWhile(IRouteDefinition, string, bool, bool)
Apache Camel parity: opens a Loop scope that repeats while the condition string holds.
public static LoopDefinition LoopWhile(this IRouteDefinition self, string condition, bool copy = false, bool shareScope = true)
Message(IRouteDefinition, Func<IExchange, string>)
Guard: Message (factory) is only valid inside a Log() scope.
public static IRouteDefinition Message(this IRouteDefinition self, Func<IExchange, string> factory)
Message(IRouteDefinition, string)
Guard: Message is only valid inside a Log() scope.
public static IRouteDefinition Message(this IRouteDefinition self, string message)
Multicast(IRouteDefinition, Action<MulticastDefinition>)
Apache Camel: opens a Multicast scope, runs configure, then closes the scope.
public static IRouteDefinition Multicast(this IRouteDefinition self, Action<MulticastDefinition> configure)
Multicast(IRouteDefinition, IEnumerable<string>, bool, bool, Func<IExchange, IExchange, IExchange>?)
Apache Camel parity: multicast to a static list of URIs.
public static IRouteDefinition Multicast(this IRouteDefinition self, IEnumerable<string> uris, bool parallelProcessing = false, bool stopOnException = false, Func<IExchange, IExchange, IExchange>? aggregationStrategy = null)
OfType(IRouteDefinition, Type)
Non-generic OfType: opens the same guarded section as
public static IRouteDefinition OfType(this IRouteDefinition self, Type bodyType)
Property(IRouteDefinition, string)
Guard: Property reader is only valid inside a Log() scope.
public static IRouteDefinition Property(this IRouteDefinition self, string propertyName)
RecipientList(IRouteDefinition, string, string, bool, bool, Func<IExchange, IExchange, IExchange>?)
Recipient List from a route-language expression. The expression may yield a collection of
public static IRouteDefinition RecipientList(this IRouteDefinition self, string recipientsExpression, string delimiter = ",", bool parallelProcessing = false, bool stopOnException = false, Func<IExchange, IExchange, IExchange>? aggregationStrategy = null)
RedeliveryDelay(IRouteDefinition, TimeSpan)
Apache Camel alias for
public static IRouteDefinition RedeliveryDelay(this IRouteDefinition self, TimeSpan delay)
Resequence(IRouteDefinition, string, int, TimeSpan?)
Resequencer keyed by a route-language expression ("header.seqNum"), converted to a long.
public static ResequenceDefinition Resequence(this IRouteDefinition self, string keyExpression, int batchSize = 100, TimeSpan? timeout = null)
Split(IRouteDefinition, Func<IExchange, IAsyncEnumerable<object?>>, Action<SplitDefinition>, bool, bool)
Apache Camel: opens a streaming (async) Split scope with options.
public static IRouteDefinition Split(this IRouteDefinition self, Func<IExchange, IAsyncEnumerable<object?>> asyncSplitter, Action<SplitDefinition> configure, bool stopOnException = false, bool parallelProcessing = false)
Split(IRouteDefinition, Func<IExchange, IAsyncEnumerable<object?>>, Action<SplitDefinition>)
Apache Camel: opens a streaming (async) Split scope.
public static IRouteDefinition Split(this IRouteDefinition self, Func<IExchange, IAsyncEnumerable<object?>> asyncSplitter, Action<SplitDefinition> configure)
Split(IRouteDefinition, Func<IExchange, IEnumerable<object?>>, Action<SplitDefinition>)
Apache Camel: opens a Split scope, runs configure, then closes the scope.
public static IRouteDefinition Split(this IRouteDefinition self, Func<IExchange, IEnumerable<object?>> splitter, Action<SplitDefinition> configure)
Split(IRouteDefinition, IExpression, Action<SplitDefinition>)
Apache Camel: opens a Split scope (expression splitter), runs configure, then closes the scope.
public static IRouteDefinition Split(this IRouteDefinition self, IExpression expression, Action<SplitDefinition> configure)
Throttle(IRouteDefinition, int, Action<ThrottleDefinition>)
Apache Camel: opens a Throttle scope, runs configure, then closes the scope.
public static IRouteDefinition Throttle(this IRouteDefinition self, int maxPerPeriod, Action<ThrottleDefinition> configure)
Throttle(IRouteDefinition, int, TimeSpan)
Apache Camel parity: opens a Throttle scope with explicit period.
public static ThrottleDefinition Throttle(this IRouteDefinition self, int maxPerPeriod, TimeSpan period)
ThrottleExpression(IRouteDefinition, IExpression, TimeSpan)
Apache Camel: Throttle whose limit comes from an , evaluated on every message.
public static ThrottleDefinition ThrottleExpression(this IRouteDefinition self, IExpression expression, TimeSpan period)
TryCatch(IRouteDefinition, Action<TryCatchDefinition>)
Apache Camel: opens a TryCatch scope, runs configure, then closes the scope.
public static IRouteDefinition TryCatch(this IRouteDefinition self, Action<TryCatchDefinition> configure)
UseSticky(ILoadBalancerDefinition, string)
Sticky load balancing keyed by a route-language expression ("header.customerId").
public static ILoadBalancerDefinition UseSticky(this ILoadBalancerDefinition self, string keyExpression)
Validate(IRouteDefinition, string, string, bool)
Apache Camel parity: validates the exchange against a condition string, throwing or
public static IRouteDefinition Validate(this IRouteDefinition self, string condition, string errorMessage = "Validation failed", bool throwOnFailure = true)
When(ChoiceDefinition, string)
Apache Camel: When using a Simple language condition, either a template
public static WhenDefinition When(this ChoiceDefinition self, string simpleTemplate)
When(INormalizerDefinition, string, Func<IExchange, object?>)
Normalizer clause from a condition string (compiled like Filter(string)).
public static INormalizerDefinition When(this INormalizerDefinition self, string condition, Func<IExchange, object?> transform)
When(WhenDefinition, string)
Apache Camel: When using a Simple language condition (from WhenDefinition).
public static WhenDefinition When(this WhenDefinition self, string simpleTemplate)