NexusConfig is the single configuration object passed to NexusClient.create(). All fields are immutable after construction.
NexusConfig
Field reference
TTL explanation
Thettl controls how stale the local in-memory snapshot can get before the SDK triggers a background refresh.
- On every getter call (
getString,getBoolean, etc.),ensureFresh()checks whethernow - syncedAt < ttl. - If the snapshot is stale, a background coroutine calls
sync(). The current call returns the stale value immediately - there is no blocking. - The stream push path (
connectStream) bypasses this completely: when a push event arrives,sync()runs regardless of TTL.
