Class RabbitMQEndpointOptions
Typed options for . Bound from URI query parameters.
public sealed class RabbitMQEndpointOptions : EndpointOptions
Inheritance
Inherited Members
Properties
AckMode
When the delivery is settled (). Manual (default): the consumer acks after a
public AckMode AckMode { get; set; }
AuthMechanism
Plain (default, username and password) or External: the TLS client certificate is the login, no
public RabbitMQAuthMechanism AuthMechanism { get; set; }
AutomaticRecovery
Enable automatic recovery (default: true).
public bool AutomaticRecovery { get; set; }
Batching
Batch mode (Apache Camel batching): the route gets one InOnly exchange whose body is a
public bool Batching { get; set; }
BatchingIntervalMs
Batch mode: a batch is sent on once this many milliseconds have passed since its first delivery.
public int? BatchingIntervalMs { get; set; }
ConcurrentConsumers
Consumer parallelism. Sizes both the channel's AMQP consumer-dispatch concurrency (how many
public string? ConcurrentConsumers { get; set; }
ConfirmTimeout
How long a send may take until the broker has taken it, in milliseconds (default 5000, as Apache Camel's
public int ConfirmTimeout { get; set; }
ConnectionFactory
Name of in the route registry.
[ConnectionFactoryReference(typeof(RabbitMQConnectionFactory))]
public string? ConnectionFactory { get; set; }
ConnectionTimeout
Connection timeout in seconds (default: 60). Prevents hangs on unreachable nodes.
public int ConnectionTimeout { get; set; }
ConsumerDispatchConcurrency
Concurrent dispatch limit per connection (default: 1).
public ushort ConsumerDispatchConcurrency { get; set; }
ContentType
Content type for published messages (default: application/json).
public string ContentType { get; set; }
ContinuationTimeout
AMQP continuation timeout in seconds (default: 30).
public int ContinuationTimeout { get; set; }
DeadLetterExchange
Dead-letter exchange name (x-dead-letter-exchange). Critical for error handling.
public string? DeadLetterExchange { get; set; }
DeadLetterRoutingKey
Dead-letter routing key (x-dead-letter-routing-key).
public string? DeadLetterRoutingKey { get; set; }
DisableReplyTo
Apache Camel disableReplyTo: the consumer does not act on a delivery's reply-to. It sends no reply, and a
public bool DisableReplyTo { get; set; }
ExchangeAutoDelete
Auto-delete exchange when no longer in use.
public bool ExchangeAutoDelete { get; set; }
ExchangeType
Exchange type: direct, topic, fanout, headers (default: direct), or an x-prefixed plugin type such as x-delayed-message.
public string ExchangeType { get; set; }
HeaderFilterStrategy
A registry reference (#name) to an that
[RegistryReference(typeof(IHeaderFilterStrategy))]
public string? HeaderFilterStrategy { get; set; }
Mandatory
Use mandatory flag. Null = auto-detect by exchange type.
public bool? Mandatory { get; set; }
MaxBatchMessages
Largest number of deliveries in a batch (default ). At most .
public int? MaxBatchMessages { get; set; }
MaximumRetryAttempts
Apache Camel maximumRetryAttempts: how many times the consumer runs the route on a delivery that fails,
public int MaximumRetryAttempts { get; set; }
MaxLength
Maximum queue length in messages (x-max-length). 0 = unlimited.
public int MaxLength { get; set; }
MaxLengthBytes
Maximum queue size in bytes (x-max-length-bytes). 0 = unlimited.
public int MaxLengthBytes { get; set; }
MaxOutstandingConfirms
Maximum number of unconfirmed (in-flight) publishes allowed on a producer channel
public int MaxOutstandingConfirms { get; set; }
MaxPriority
Maximum priority level for priority queues (x-max-priority). 0 = disabled.
public int MaxPriority { get; set; }
MessageTtl
Message TTL in milliseconds (x-message-ttl). 0 = disabled.
public int MessageTtl { get; set; }
Overflow
Overflow strategy: drop-head, reject-publish, reject-publish-dlx (x-overflow).
public string? Overflow { get; set; }
PollTimeoutMs
Batch mode: a batch with deliveries is sent on once no delivery came for this many milliseconds, restarted by
public int PollTimeoutMs { get; set; }
PrefetchCount
Prefetch count per consumer (default: 10). Should be >=
public ushort PrefetchCount { get; set; }
PreserveMessageQos
Apache Camel preserveMessageQos: an ordinary (not request-reply) send keeps the ReplyTo header as the
public bool PreserveMessageQos { get; set; }
PublisherConnection
Publish over a connection of its own (default: false, one connection for everything with the same settings, as in
public bool PublisherConnection { get; set; }
Queue
Queue name. Empty on a consumer: a temporary queue of its own (exclusive, auto-delete), named by the broker,
public string Queue { get; set; }
QueueType
Queue type: classic, quorum, stream (x-queue-type). Quorum and stream queues are replicated across cluster nodes.
public string? QueueType { get; set; }
RecoveryInterval
Network recovery interval in seconds (default: 5).
public int RecoveryInterval { get; set; }
RejectAndDontRequeue
Apache Camel rejectAndDontRequeue: a delivery that failed every attempt is rejected without requeue
public bool RejectAndDontRequeue { get; set; }
ReplyTo
Request-reply (RPC): the producer publishes the request and waits for the reply on a reply queue of its own. The
public bool ReplyTo { get; set; }
ResolvedConcurrentConsumers
Resolved consumer parallelism: 1 by default, N, or auto = max(CPU, 2).
public int ResolvedConcurrentConsumers { get; }
RetryDelay
Apache Camel retryDelay: milliseconds between two attempts on a failed delivery (default 1000).
public int RetryDelay { get; set; }
RevocationMode
Revocation check of the broker certificate: NoCheck (default), Online (CRL and OCSP the
public X509RevocationMode RevocationMode { get; set; }
RevocationSoftFail
Accept a broker certificate whose revocation status cannot be determined. Default false: refused.
public bool RevocationSoftFail { get; set; }
SocketReadTimeout
Socket read timeout in seconds (default: 30).
public int SocketReadTimeout { get; set; }
SocketWriteTimeout
Socket write timeout in seconds (default: 30).
public int SocketWriteTimeout { get; set; }
SslCaCertPath
PEM file with the root certificates the broker certificate must chain to, instead of the system trust store — a
public string? SslCaCertPath { get; set; }
SslCertPath
Client certificate (PFX) presented for mutual TLS; checked for its validity period at startup.
public string? SslCertPath { get; set; }
SslProtocols
Allowed TLS versions, Tls12, Tls13 or Tls12,Tls13. Unset (None), the operating system
public SslProtocols SslProtocols { get; set; }
SslServerName
The name the broker certificate must carry. Unset, each host of the list is checked against its own name; set it
public string? SslServerName { get; set; }
TopologyRecoveryEnabled
Re-declare topology after recovery (default: true). Critical for cluster.
public bool TopologyRecoveryEnabled { get; set; }
Transacted
Consumer: true takes the delivery on a transacted channel. Producer: whether the send joins the enclosing
public bool? Transacted { get; set; }
Methods
UnknownParameterHint(string)
A connector's own words for a parameter name it does not know — typically a name it used to
protected override string? UnknownParameterHint(string name)
Validate()
Validates required parameters and constraints. Called after BindFromUri.
public override void Validate()