@ThreadSafe public interface ConfigWatcher
ConfigWatcher requests watches for configuration resources by type, node, last applied version identifier,
and resource names hint. The watch should send the responses when they are ready. The watch can be cancelled by the
consumer, in effect terminating the watch for the request. ConfigWatcher implementations must be thread-safe.| Modifier and Type | Method and Description |
|---|---|
Watch |
createWatch(boolean ads,
Discovery.DiscoveryRequest request,
Set<String> knownResourceNames,
Consumer<Response> responseConsumer)
Returns a new configuration resource
Watch for the given discovery request. |
Watch createWatch(boolean ads, Discovery.DiscoveryRequest request, Set<String> knownResourceNames, Consumer<Response> responseConsumer)
Watch for the given discovery request.ads - is the watch for an ADS request?request - the discovery request (node, names, etc.) to use to generate the watchknownResourceNames - resources that are already known to the callerresponseConsumer - the response handler, used to process outgoing response messagesCopyright © 2018 The Envoy Project. All rights reserved.