Class MqttEndpointOptions
Endpoint options for the MQTT component. Bound from URI parameters via reflection.
public sealed class MqttEndpointOptions : EndpointOptions
Inheritance
Inherited Members
Properties
ConcurrentConsumers
Number of concurrent processing workers for received messages (default 1 = serial).
public string? ConcurrentConsumers { get; set; }
ConnectionFactory
Named from the route registry. Lets broker credentials
[RegistryReference(typeof(MqttConnectionFactory))]
public string? ConnectionFactory { get; set; }
MaxReconnectDelay
The longest pause, in milliseconds, before the consumer connects again after a failed message on a kept session
public int MaxReconnectDelay { get; set; }
MessageExpiryInterval
Message expiry interval in seconds (MQTT 5.0). 0 = no expiry.
public int MessageExpiryInterval { get; set; }
MessageExpiryIntervalExpression
Message expiry as expression (e.g. ${body['ttl']}). Resolved at runtime, overrides if set.
public string? MessageExpiryIntervalExpression { get; set; }
QosExpression
QoS level as expression (e.g. ${header['qos']}). Resolved at runtime, overrides if set.
public string? QosExpression { get; set; }
ResolvedConcurrentConsumers
Resolved consumer parallelism: 1, N, or auto = max(CPU, 2) (see ).
public int ResolvedConcurrentConsumers { get; }
ResponseTopic
Response topic for request/response pattern (MQTT 5.0).
public string? ResponseTopic { get; set; }
Server
Inline broker URL (e.g. tcp://localhost:1883). Alternative to named Broker.
public string? Server { get; set; }
SessionExpiryInterval
MQTT 5 Session Expiry Interval in seconds (Apache Camel paho-mqtt5 sessionExpiryInterval): how long the
public int SessionExpiryInterval { get; set; }
Methods
Validate()
Validates required parameters and constraints. Called after BindFromUri.
public override void Validate()