ProviderTuningRegistry class final
The process-wide per-provider tuning table: registry entries that
declare connectTimeoutMs/streamIdleTimeoutMs are seeded here at
boot. Boot-scoped (review r2): a mid-session config edit does not
re-seed by itself — a host applying a fresh config re-runs the seeder
with reset: true (E4: the NEXT request recomputes; an in-flight one
already resolved its values).
Constructors
Properties
-
entries
→ List<
ProviderTuningEntry> -
The registered entries (boot notice rendering).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether the table is empty — the AC6 fast path: no entries means the
wire seams resolve to today's global/default values untouched.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Drops every entry (test reset; boot re-seeds).
-
forName(
String name) → ProviderTuningEntry? - The entry registered under an exact name (the AC1 startup log and the explicit-name lookups).
-
forUrl(
Uri url) → ProviderTuningEntry? -
The entry serving
url, or null. Match rule: same scheme + host + (optional port) and the entry's base path is a path prefix of the request's (entryhttps://api.x/v1matcheshttps://api.x/v1/chat/completionsandhttps://api.x/v1, neverhttps://api.x/v2or another host/port). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
{required String name, required String baseUrl, Duration? connect, Duration? streamIdle}) → void - Registers (or replaces, per name+baseUrl) one entry. Entries that override nothing are ignored — they must never shadow the global section.
-
registerAll(
Iterable< ProviderTuningEntry> entries) → void - Bulk registration (the boot seeder's shape); later entries win per name+baseUrl.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited