Class MqttConsumerEndpoint
Represents a topic to consume from.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging
Assembly: Silverback.Integration.MQTT.dll
Syntax
public sealed class MqttConsumerEndpoint : ConsumerEndpoint, IConsumerEndpoint, IEndpoint, IEquatable<MqttConsumerEndpoint>
Constructors
| Improve this doc View sourceMqttConsumerEndpoint(String[])
Initializes a new instance of the MqttConsumerEndpoint class.
Declaration
public MqttConsumerEndpoint(params string[] topics)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | topics | The name of the topics or the topic filter strings. |
Properties
| Improve this doc View sourceBackpressureLimit
Gets or sets the maximum number of messages to be consumed and enqueued waiting to be processed. The default is 1.
Declaration
public int BackpressureLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Configuration
Gets or sets the MQTT client configuration. This is actually a wrapper around the MQTTnet.Client.MqttClientOptions from the MQTTnet library.
Declaration
public MqttClientConfig Configuration { get; set; }
Property Value
Type | Description |
---|---|
MqttClientConfig |
MaxDegreeOfParallelism
Gets or sets the maximum number of incoming message that can be processed concurrently. The default is 1.
Declaration
public int MaxDegreeOfParallelism { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
QualityOfServiceLevel
Gets or sets the quality of service level (at most once, at least once or exactly once). The default is MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce.
Declaration
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
Property Value
Type | Description |
---|---|
MQTTnet.Protocol.MqttQualityOfServiceLevel |
Topics
Gets the name of the topics or the topic filter strings.
Declaration
public IReadOnlyCollection<string> Topics { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.String> |
Methods
| Improve this doc View sourceEquals(MqttConsumerEndpoint)
Declaration
public bool Equals(MqttConsumerEndpoint other)
Parameters
Type | Name | Description |
---|---|---|
MqttConsumerEndpoint | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this doc
View source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this doc
View source
GetUniqueConsumerGroupName()
Declaration
public override string GetUniqueConsumerGroupName()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this doc View sourceValidate()
Declaration
public override void Validate()
Overrides
Implements
System.IEquatable<T>