GrpcHealthServiceStatus class final
Manages per-service health status and notifies watchers on changes.
Thread-safe for single-isolate use. Shared between the health contract and the application code that updates statuses.
Constructors
Properties
-
changes
→ Stream<
(String, GrpcServingStatus)> -
Stream of (service, status) changes for watchers.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAll(
) → void - Clears all statuses.
-
clearStatus(
String service) → void -
Clears the status for
service. -
dispose(
) → void - Closes the change stream. Call on server shutdown.
-
getStatus(
String service) → GrpcServingStatus? -
Returns the current status for
service, or null if not registered. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setStatus(
String service, GrpcServingStatus status) → void -
Sets the serving status for
service. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited