isOpen method
Adds instrumentation to error handling.
correlationId
(optional) transaction id to trace execution through call chain.name
a method name.err
an occured errorreerror
if true - throw error Checks if the component is opened.
Returns true if the component has been opened and false otherwise.
Implementation
// void instrumentError(String? correlationId, String name, err,
// [bool reerror = false]) {
// if (err != null) {
// _logger.error(correlationId, err, 'Failed to call %s method', [name]);
// _counters.incrementOne(name + '.call_errors');
// if (reerror != null && reerror == true) {
// throw err;
// }
// }
// }
/// Checks if the component is opened.
///
/// Returns true if the component has been opened and false otherwise.
@override
bool isOpen() {
return _channel != null;
}