Class RabbitBuilder
Fluent builder for RabbitMQ endpoint URIs.
public sealed class RabbitBuilder
Inheritance
Methods
AckMode(AckMode)
When the delivery is settled. : the broker settles it on hand-off
public RabbitBuilder AckMode(AckMode mode)
AuthMechanism(RabbitMQAuthMechanism)
Log in with the TLS client certificate () instead of a password.
public RabbitBuilder AuthMechanism(RabbitMQAuthMechanism mechanism)
AutomaticRecovery(bool)
Enable automatic connection recovery. Default true.
public RabbitBuilder AutomaticRecovery(bool enabled = true)
Batching()
Batch mode (batching=true): the route gets the deliveries as a List<IMessage>.
public RabbitBuilder Batching()
BatchingIntervalMs(int)
Hard limit of a batch in milliseconds from its first delivery (batchingIntervalMs).
public RabbitBuilder BatchingIntervalMs(int ms)
ClientName(IExpression)
Client connection name. Default "redb.Route".
public RabbitBuilder ClientName(IExpression name)
ClientName(string)
Client connection name (template string, supports ${...}). Default "redb.Route".
public RabbitBuilder ClientName(string name)
ConcurrentConsumers(IExpression)
Concurrent consumers from an expression.
public RabbitBuilder ConcurrentConsumers(IExpression count)
ConcurrentConsumers(int)
Number of concurrent consumers. Default 1.
public RabbitBuilder ConcurrentConsumers(int count)
ConcurrentConsumers(string)
Consumer parallelism as a string: a number or "auto" (= max(CPU, 2)).
public RabbitBuilder ConcurrentConsumers(string count)
ConfirmTimeout(IExpression)
Confirm timeout from an expression.
public RabbitBuilder ConfirmTimeout(IExpression milliseconds)
ConfirmTimeout(int)
How long a send may take until the broker has taken it, in milliseconds. Default 5000. A send to a broker that
public RabbitBuilder ConfirmTimeout(int milliseconds)
ConnectionFactory(IExpression)
Use a named connection factory registered in DI.
public RabbitBuilder ConnectionFactory(IExpression name)
ConnectionFactory(string)
Use a named connection factory registered in DI (template string, supports ${...}).
public RabbitBuilder ConnectionFactory(string name)
ConnectionTimeout(IExpression)
Connection timeout from an expression.
public RabbitBuilder ConnectionTimeout(IExpression seconds)
ConnectionTimeout(int)
Connection timeout in seconds. Default 60.
public RabbitBuilder ConnectionTimeout(int seconds)
ConsumerDispatchConcurrency(IExpression)
Consumer dispatch concurrency from an expression.
public RabbitBuilder ConsumerDispatchConcurrency(IExpression count)
ConsumerDispatchConcurrency(ushort)
Consumer dispatch concurrency. Default 1.
public RabbitBuilder ConsumerDispatchConcurrency(ushort count)
ContentType(string)
Content type. Default "application/json".
public RabbitBuilder ContentType(string type)
ContinuationTimeout(IExpression)
Continuation timeout from an expression.
public RabbitBuilder ContinuationTimeout(IExpression seconds)
ContinuationTimeout(int)
Continuation timeout in seconds. Default 30.
public RabbitBuilder ContinuationTimeout(int seconds)
DeadLetterExchange(IExpression)
Dead letter exchange name.
public RabbitBuilder DeadLetterExchange(IExpression exchange)
DeadLetterExchange(string)
Dead letter exchange name (template string, supports ${...}).
public RabbitBuilder DeadLetterExchange(string exchange)
DeadLetterRoutingKey(IExpression)
Dead letter routing key.
public RabbitBuilder DeadLetterRoutingKey(IExpression key)
DeadLetterRoutingKey(string)
Dead letter routing key (template string, supports ${...}).
public RabbitBuilder DeadLetterRoutingKey(string key)
DisableReplyTo()
The consumer ignores a delivery's reply-to (Apache Camel disableReplyTo): no reply, and a batch takes it.
public RabbitBuilder DisableReplyTo()
Exchange(IExpression, string?)
Exchange name and optionally type (direct, topic, fanout, headers).
public RabbitBuilder Exchange(IExpression name, string? type = null)
Exchange(string, string?)
Exchange name (template string, supports ${...}) and optionally type.
public RabbitBuilder Exchange(string name, string? type = null)
ExchangeAutoDelete()
Exchange auto-delete when last consumer unsubscribes.
public RabbitBuilder ExchangeAutoDelete()
ExchangeDurable(bool)
Exchange durability. Default true.
public RabbitBuilder ExchangeDurable(bool durable = true)
Expires(int)
Queue expires (auto-delete) after ms of inactivity. 0 = never.
public RabbitBuilder Expires(int ms)
Heartbeat(IExpression)
Heartbeat interval from an expression.
public RabbitBuilder Heartbeat(IExpression seconds)
Host(string)
Broker hostname (template string, supports ${...}). Default "localhost".
public RabbitBuilder Host(string host)
MaxBatchMessages(int)
Largest number of deliveries in a batch (maxBatchMessages, default and maximum prefetchCount).
public RabbitBuilder MaxBatchMessages(int max)
MaximumRetryAttempts(int)
Attempts on a failed delivery, the first included (Apache Camel maximumRetryAttempts, default 5).
public RabbitBuilder MaximumRetryAttempts(int attempts)
MaxLength(IExpression)
Max queue length from an expression.
public RabbitBuilder MaxLength(IExpression max)
MaxLengthBytes(IExpression)
Max queue size from an expression.
public RabbitBuilder MaxLengthBytes(IExpression max)
MaxPriority(IExpression)
Max priority from an expression.
public RabbitBuilder MaxPriority(IExpression priority)
MaxPriority(int)
Max priority level. Default 0 (disabled).
public RabbitBuilder MaxPriority(int priority)
MessageTtl(IExpression)
Per-message TTL from an expression.
public RabbitBuilder MessageTtl(IExpression ms)
Overflow(string)
Overflow strategy: "drop-head", "reject-publish", "reject-publish-dlx".
public RabbitBuilder Overflow(string policy)
Password(string)
Password (template string, supports ${...}). Default "guest".
public RabbitBuilder Password(string password)
PollTimeoutMs(int)
Idle timeout of a batch in milliseconds (pollTimeoutMs, default 1000).
public RabbitBuilder PollTimeoutMs(int ms)
PrefetchCount(IExpression)
Prefetch count from an expression.
public RabbitBuilder PrefetchCount(IExpression count)
PreserveMessageQos()
Keep the ReplyTo header as the reply-to of an ordinary send (Apache Camel preserveMessageQos); without it
public RabbitBuilder PreserveMessageQos()
PublisherConnection()
Publish over a connection of its own: this endpoint's sends and its consumer's RPC replies go over a second
public RabbitBuilder PublisherConnection()
QueueType(string)
Queue type: "classic", "quorum", "stream".
public RabbitBuilder QueueType(string type)
RecoveryInterval(IExpression)
Recovery interval from an expression.
public RabbitBuilder RecoveryInterval(IExpression seconds)
RecoveryInterval(int)
Recovery interval in seconds. Default 5.
public RabbitBuilder RecoveryInterval(int seconds)
RejectAndDontRequeue(bool)
Whether a delivery that failed every attempt is rejected without requeue, to the dead letter exchange (Apache Camel
public RabbitBuilder RejectAndDontRequeue(bool value)
RetryDelay(int)
Milliseconds between two attempts on a failed delivery (Apache Camel retryDelay, default 1000).
public RabbitBuilder RetryDelay(int milliseconds)
RevocationMode(X509RevocationMode, bool)
Revocation check of the broker certificate; softFail accepts an undeterminable status.
public RabbitBuilder RevocationMode(X509RevocationMode mode, bool softFail = false)
RoutingKey(string)
Routing key (template string, supports ${...} for a per-message key).
public RabbitBuilder RoutingKey(string key)
SocketReadTimeout(IExpression)
Socket read timeout from an expression.
public RabbitBuilder SocketReadTimeout(IExpression seconds)
SocketReadTimeout(int)
Socket read timeout in seconds. Default 30.
public RabbitBuilder SocketReadTimeout(int seconds)
SocketWriteTimeout(IExpression)
Socket write timeout from an expression.
public RabbitBuilder SocketWriteTimeout(IExpression seconds)
SocketWriteTimeout(int)
Socket write timeout in seconds. Default 30.
public RabbitBuilder SocketWriteTimeout(int seconds)
Ssl(IExpression?, IExpression?, IExpression?)
Enable SSL with optional server name and client certificate.
public RabbitBuilder Ssl(IExpression? serverName = null, IExpression? certPath = null, IExpression? certPassphrase = null)
SslCaCertPath(IExpression)
PEM file with the root certificates the broker certificate must chain to, instead of the system trust store.
public RabbitBuilder SslCaCertPath(IExpression path)
SslProtocols(SslProtocols)
Allowed TLS versions: Tls12, Tls13 or both. Unset, the operating system chooses.
public RabbitBuilder SslProtocols(SslProtocols protocols)
Timeout(int)
Consumer/producer timeout in seconds. Default 60.
public RabbitBuilder Timeout(int seconds)
TopologyRecoveryEnabled(bool)
Enable topology recovery. Default true.
public RabbitBuilder TopologyRecoveryEnabled(bool enabled = true)
Transacted(bool)
Sets transacted explicitly. false sends at once even inside a .Transacted() block, outside its
public RabbitBuilder Transacted(bool value)
Username(string)
Username (template string, supports ${...}). Default "guest".
public RabbitBuilder Username(string username)
VirtualHost(IExpression)
Virtual host. Default "/".
public RabbitBuilder VirtualHost(IExpression vhost)
VirtualHost(string)
Virtual host (template string, supports ${...}). Default "/".
public RabbitBuilder VirtualHost(string vhost)