HealthEndpointRegistry class
Tracks paths exposed by the health service.
- Inheritance
-
- Object
- NamedRegistry<
bool> - HealthEndpointRegistry
Constructors
Properties
-
entries
→ Map<
String, bool> -
Provides direct access to the internal map of entries.
no setterinherited
-
entryNames
→ Iterable<
String> -
An iterable of all entry names in the registry.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allows(
String path) → bool -
Whether
pathis registered as a health endpoint. -
clearEntries(
) → void -
Clears all entries from the registry.
inherited
-
containsEntry(
String name) → bool -
Checks if an entry with the given
nameexists in the registry.inherited -
duplicateDiagnostics(
String name) → String -
Generates diagnostic information for duplicate entries with the given
name.inherited -
entryOrigin(
String name) → StackTrace? -
Retrieves the stack trace of the original registration for the given
name.inherited -
getEntry(
String name) → bool? -
Retrieves the entry associated with the given
name.inherited -
normalizeName(
String name) → String -
Normalizes the given
nameby trimming and converting it to lowercase.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDuplicate(
String name, bool existing, bool overrideExisting) → bool -
Handles duplicate entries with the given
nameandexistingvalue.inherited -
registerEntry(
String name, bool value, {bool overrideExisting = true}) → bool -
Registers an entry with the given
nameandvalue.inherited -
setPaths(
Iterable< String> paths) → void -
Replaces the registered health
paths. -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterEntry(
String name) → bool -
Unregisters the entry with the given
name.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited