register abstract method

Future<ConnectionParams> register(
  1. String? correlationId,
  2. String key,
  3. ConnectionParams connection
)

Registers connection parameters into the discovery service.

  • correlationId (optional) transaction id to trace execution through call chain.
  • key a key to uniquely identify the connection parameters.
  • credential a connection to be registered. Return Future that receives a registered connection Throw error.

Implementation

Future<ConnectionParams> register(
    String? correlationId, String key, ConnectionParams connection);