compose method

Future<ConfigParams> compose(
  1. String? correlationId,
  2. ConnectionParams? connection,
  3. 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 parameters
  • credential 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);
}