Interface ConfigurationSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Host-configured source of complete versioned configuration snapshots. Providers atomically
subscribe to their initial snapshot and tail; reconnect replays use the same version namespace.
A source must not be selected or granted credentials by an untrusted application annotation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordComplete source snapshot, not a patch. -
Method Summary
Modifier and TypeMethodDescriptionwatch(Consumer<ConfigurationSource.Snapshot> listener) Starts one source subscription.
-
Method Details
-
watch
Starts one source subscription. Delivery may occur before this method returns. The returned subscription owns provider resources and must stop delivery when closed. If subscription fails, the provider cleans up resources before throwing. The host still guards racing events.- Parameters:
listener- complete immutable snapshots; accepted versions increase monotonically- Returns:
- nonnull closeable provider subscription
- Throws:
Exception- if the source cannot establish a subscription
-