MemoryMetrics class
A memory-based implementation of the Metrics interface.
- Implemented types
Constructors
- MemoryMetrics.new()
- Creates a new memory-based metrics implementation.
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
-
latencyEWMA(
PeerId id) → Future< Duration> -
LatencyEWMA returns an exponentially-weighted moving avg.
of all measurements of a peer's latency.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordLatency(
PeerId id, Duration latency) → Future< void> -
RecordLatency records a new latency measurement
override
-
removePeer(
PeerId id) → void -
RemovePeer removes all metrics stored for a peer.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited