compose method
Future<ConfigParams>
compose(
- String? correlationId,
- ConnectionParams? connection,
- CredentialParams? credential
Compose method are composes RabbitMQ connection options from connection and credential parameters. Parameters:
correlationId
(optional) transaction id to trace execution through call chain.connection
connection parameterscredential
credential parameters Returns Future that receives resolved options Throw error.
Implementation
Future<ConfigParams> compose(String? correlationId,
ConnectionParams? connection, CredentialParams? credential) async {
// Validate connections
_validateConnection(correlationId, connection);
return _composeOptions(connection, credential);
}