Class ThrottleDefinition
Scope-opener definition for the Throttle EIP.
Limits the rate at which the downstream pipeline processes exchanges.
Inherits the leaf DSL from ;
child steps build the downstream pipeline.
Close with .
public class ThrottleDefinition : RouteDefinitionBase<ThrottleDefinition>, IRouteDefinition, IProcessorDefinition, IRouteScope
Inheritance
Implements
Inherited Members
Methods
CreateProcessor(IRouteContext)
Compile this node into a runtime processor.
public override IProcessor CreateProcessor(IRouteContext context)
EndThrottle()
Closes the Throttle scope and returns the parent route definition.
public IRouteDefinition EndThrottle()
Period(TimeSpan)
Sets the time period for the rate limit (default: 1 second).
public ThrottleDefinition Period(TimeSpan period)
RejectOnOverflow(bool)
Opt into RFC 6585 §4 rejection semantics: overflow exchanges are short-circuited with
public ThrottleDefinition RejectOnOverflow(bool reject = true)