Class SqsHeaderFilterStrategy
The default of the SQS component. An endpoint's
headerFilterStrategy=#name replaces it; derive from it to add to it.
A producer sends every exchange header but the component's own redbSqs.* / redbSns.* and null values
as a message attribute of the same name; a consumer brings every message attribute in. The strategy is asked with
the attribute's own name, on the way in as well, although the consumer stores it under
redbSqs.attr.<name>.
Whatever the strategy: a redbSqs.attr.<name> header is an explicit request and goes out as attribute
<name>; the other redbSqs.* / redbSns.* headers never go out; the consumer's
redbSqs.* metadata is set by the consumer; trace context is written by the telemetry layer.
public class SqsHeaderFilterStrategy : IHeaderFilterStrategy
Inheritance
Implements
Properties
Default
The default strategy of an SQS endpoint.
public static SqsHeaderFilterStrategy Default { get; }
Methods
FilterIncoming(string, object?, IExchange)
Whether the header name of an incoming message (a consumed message, a producer's reply) is
public virtual bool FilterIncoming(string name, object? value, IExchange exchange)
FilterOutgoing(string, object?, IExchange)
Whether the exchange header name is dropped instead of going into an outgoing message
public virtual bool FilterOutgoing(string name, object? value, IExchange exchange)