Serves a configured instance list.
StaticProvider(services: Readonly<Record<string, readonly StaticServiceDefinition[]>>,runtime: IRuntimeServices)
Parameters
services: Readonly<Record<string, readonly StaticServiceDefinition[]>>
Service name to its instances
readonly
kind: string
Backend id.
isHealthy(): Promise<boolean>
M70c: a static map is in memory and cannot be unreachable, so it is always reachable (M47).
resolve(serviceName: string): Promise<readonly ServiceInstance[]>
Reads the current instance list for a service.
watch(serviceName: string,listener: (instances: readonly ServiceInstance[]) => void): Promise<Unsubscribe>
Fires once with the configured list and never again.
The list is immutable by construction, so there is nothing further to report. Delivering it on a timer rather than synchronously means a caller that subscribes and then reads has the same ordering it would get from a real backend.