IsolateReporter class abstract interface

A part of what each isolate of a pool tells the primary every few seconds: a bean that implements it is asked in its own isolate, and what it answers is kept in the primary's IsolateReports under id.

For numbers kept per isolate that are wanted for the whole application: the web starter's request rate is one.

@Component()
class BasketCount implements IsolateReporter {
  BasketCount(this.baskets);
  final Baskets baskets;

  @override
  String get id => 'baskets';
  @override
  Object? report() => baskets.open; // of this isolate
}

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
The report's name, one per kind of report.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report() → Object?
What this isolate has to tell now: JSON values only (numbers, text, lists and maps of them), which cross isolates.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited