MeterSink class abstract
Receives every MeterEvent that the meter records.
Implementations should:
- be non-blocking — return quickly or do their I/O off the UI thread
- tolerate transient failures internally (never throw to caller)
- be safe to call concurrently
Failures in one sink do not affect any other sink registered on LlmMeter.
- Implementers
Constructors
- MeterSink()
-
Const constructor so subclasses can be const.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Optional teardown hook. Default is a no-op.
-
flush(
) → Future< void> -
Optional batch flush hook. Called by
BatchingSinkand byLlmMeteron shutdown. Default is a no-op. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
MeterEvent event) → Future< void> - Called once per recorded event.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited