open method

  1. @override
Future open(
  1. String? correlationId
)
override

Opens the component.

  • correlationId (optional) transaction id to trace execution through call chain.

Implementation

@override
Future open(String? correlationId) async {
  if (isOpen()) {
    return;
  }

  try {
    if (_autoSubscribe) {
      await subscribe(correlationId);
    }

    logger.debug(correlationId, 'Opened queue ' + getName());
  } catch (ex) {
    await close(correlationId);
  }
}