close method

  1. @override
Future close(
  1. String? correlationId
)
inherited

Closes component and frees used resources.

  • correlationId (optional) transaction id to trace execution through call chain. Return Future that receives null no errors occured. Throw error

Implementation

@override
Future close(String? correlationId) async {
  if (opened) {
    logger.info(correlationId, 'Closed direct client');
  }

  opened = false;
}