Table of Contents

Interface IRabbitMQQueuePolicyBuilder

Namespace
Excalibur.Dispatch.Transport.RabbitMQ
Assembly
Excalibur.Dispatch.Transport.RabbitMQ.dll

Defines policy configuration methods for a RabbitMQ queue builder.

public interface IRabbitMQQueuePolicyBuilder
Extension Methods

Methods

MaxLength(int)

Sets the maximum number of messages allowed in the queue.

IRabbitMQQueueBuilder MaxLength(int maxLength)

Parameters

maxLength int

The maximum message count.

Returns

IRabbitMQQueueBuilder

The builder for chaining.

Exceptions

ArgumentOutOfRangeException

Thrown when maxLength is less than 1.

MaxLengthBytes(long)

Sets the maximum total size in bytes for all messages in the queue.

IRabbitMQQueueBuilder MaxLengthBytes(long maxBytes)

Parameters

maxBytes long

The maximum size in bytes.

Returns

IRabbitMQQueueBuilder

The builder for chaining.

Exceptions

ArgumentOutOfRangeException

Thrown when maxBytes is less than 1.

MaxPayloadBytes(int?)

Sets the maximum inbound-payload length, in bytes, enforced at receive ingress before the body is materialized (defense-in-depth DoS hardening). An over-limit message is rejected before deserialization.

IRabbitMQQueueBuilder MaxPayloadBytes(int? maxBytes)

Parameters

maxBytes int?

The maximum payload length in bytes, or null to opt out (unbounded).

Returns

IRabbitMQQueueBuilder

The builder for chaining.

Exceptions

ArgumentOutOfRangeException

Thrown when maxBytes is less than 1.

MessageTtl(TimeSpan)

Sets the message time-to-live for messages in this queue.

IRabbitMQQueueBuilder MessageTtl(TimeSpan ttl)

Parameters

ttl TimeSpan

The TTL duration.

Returns

IRabbitMQQueueBuilder

The builder for chaining.

Exceptions

ArgumentOutOfRangeException

Thrown when ttl is negative.