Class MqttProducerEndpointConfiguration
- Namespace
- Silverback.Messaging.Configuration.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
The MQTT producer configuration.
public sealed record MqttProducerEndpointConfiguration : ProducerEndpointConfiguration<MqttProducerEndpoint>, IEquatable<EndpointConfiguration>, IEquatable<ProducerEndpointConfiguration>, IEquatable<ProducerEndpointConfiguration<MqttProducerEndpoint>>, IEquatable<MqttProducerEndpointConfiguration>
- Inheritance
-
MqttProducerEndpointConfiguration
- Implements
- Inherited Members
Constructors
MqttProducerEndpointConfiguration()
public MqttProducerEndpointConfiguration()
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
MessageExpiryInterval
Gets the message expiry interval in seconds. This interval defines the period of time that the broker stores the PUBLISH
message for any matching subscribers that are not currently connected. When no message expiry interval is set, the broker must
store the message for matching subscribers indefinitely.
The default is null.
public uint MessageExpiryInterval { get; init; }
Property Value
NoMatchingSubscribersBehavior
Gets a value indicating the behavior when no matching subscribers are found for the produced message.
public NoMatchingSubscribersBehavior NoMatchingSubscribersBehavior { get; init; }
Property Value
QualityOfServiceLevel
Gets the quality of service level (at most once, at least once or exactly once). The default is MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce.
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; init; }
Property Value
- MqttQualityOfServiceLevel
Retain
Gets a value indicating whether the message have to be sent with the retain flag, causing them to be persisted on the broker.
The default is false.
public bool Retain { get; init; }
Property Value
Methods
Equals(MqttProducerEndpointConfiguration?)
public bool Equals(MqttProducerEndpointConfiguration? other)
Parameters
Returns
Equals(ProducerEndpointConfiguration<MqttProducerEndpoint>?)
public override sealed bool Equals(ProducerEndpointConfiguration<MqttProducerEndpoint>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
ValidateCore()
Validates the endpoint configuration and throws an BrokerConfigurationException if not valid.
protected override void ValidateCore()
Operators
operator ==(MqttProducerEndpointConfiguration?, MqttProducerEndpointConfiguration?)
public static bool operator ==(MqttProducerEndpointConfiguration? left, MqttProducerEndpointConfiguration? right)
Parameters
Returns
operator !=(MqttProducerEndpointConfiguration?, MqttProducerEndpointConfiguration?)
public static bool operator !=(MqttProducerEndpointConfiguration? left, MqttProducerEndpointConfiguration? right)