Interface BindingCandidateSource
public interface BindingCandidateSource
Host-owned finite candidate feed. Each observation is a full snapshot; revisions must increase
across reconnect within the returned subscription. Source failures are explicit non-authoritative
observations, never an invented successful empty registry. No caller authority is installed here.
-
Method Summary
Modifier and TypeMethodDescriptionwatch(ServiceBindingRequest<?> request, BindingPolicy policy, Consumer<BindingCandidates> observations) Subscribes to a bounded request; closing prevents new delivery and releases its watcher.
-
Method Details
-
watch
AutoCloseable watch(ServiceBindingRequest<?> request, BindingPolicy policy, Consumer<BindingCandidates> observations) Subscribes to a bounded request; closing prevents new delivery and releases its watcher.- Parameters:
request- exact service selection contractpolicy- host-owned polling/deadline/capacity limitsobservations- internal consumer of immutable snapshots- Returns:
- closeable subscription, owned by the binding
- Throws:
IllegalStateException- if source capacity is exhausted or the source is closed
-