MqttConnectionResolver class

Helper class that resolves MQTT connection and credential parameters, validates them and generates connection options.

Configuration parameters

  • connection(s):
  • discovery_key: (optional) a key to retrieve the connection from IDiscovery
  • host: host name or IP address
  • port: port number
  • uri: resource URI or connection string with all parameters in it
  • credential(s):
  • store_key: (optional) a key to retrieve the credentials from ICredentialStore
  • username: user name
  • password: user password

References

  • :discovery::*:1.0 (optional) IDiscovery services to resolve connections
  • :credential-store::*:1.0 (optional) Credential stores to resolve credentials

Constructors

MqttConnectionResolver()

Properties

connectionResolver → ConnectionResolver
The connections resolver.
final
credentialResolver → CredentialResolver
The credentials resolver.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compose(String? correlationId, ConnectionParams connection, CredentialParams credential) Future<ConfigParams>
Composes MQTT connection options from connection and credential parameters.
configure(ConfigParams config) → void
Configures component by passing configuration parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String? correlationId) Future<ConfigParams>
Resolves MQTT connection options from connection and credential parameters.
setReferences(IReferences references) → void
Sets references to dependent components.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited