Optional ReadonlycacheMilliseconds a resolved instance list is served from cache.
0 disables caching so every resolve hits the backend. A watched
service invalidates its own entry on every change, so this is a safety net
rather than the primary freshness mechanism.
Optional ReadonlyejectionOutlier-ejection tuning, or false to disable ejection entirely.
ReadonlyproviderDiscriminant.
Optional ReadonlyselfAdvertise this instance to the backend (Consul only).
ReadonlyservicesService name to its instances. An unknown name resolves to [].
Optional ReadonlystrategyDefault selection strategy; PickOptions.strategy overrides it per call.
Optional ReadonlywatchMilliseconds between watch() polls.
The list is immutable by construction, so a static watch fires once with it and never again — this exists so the option is uniform across the two poll-based arms, and the static watch reads it only to schedule that first delivery on the next tick.
The
'static'arm — a literal instance list, with no backend at all.Since
0.2.0