Class CompositeDiscoveryClient
java.lang.Object
org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient
- All Implemented Interfaces:
DiscoveryClient,org.springframework.core.Ordered
A
DiscoveryClient that is composed of other discovery clients and delegates
calls to each of them in order.- Author:
- Biju Kunjummen, Olga Maciaszek-Sharma
-
Field Summary
Fields inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient
DEFAULT_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description of the implementation, used in HealthIndicator.getInstances(String serviceId) Gets all ServiceInstances associated with a particular serviceId.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient
getOrder, probe
-
Constructor Details
-
CompositeDiscoveryClient
-
-
Method Details
-
description
Description copied from interface:DiscoveryClientA human-readable description of the implementation, used in HealthIndicator.- Specified by:
descriptionin interfaceDiscoveryClient- Returns:
- The description.
-
getInstances
Description copied from interface:DiscoveryClientGets all ServiceInstances associated with a particular serviceId.- Specified by:
getInstancesin interfaceDiscoveryClient- Parameters:
serviceId- The serviceId to query.- Returns:
- A List of ServiceInstance.
-
getServices
- Specified by:
getServicesin interfaceDiscoveryClient- Returns:
- All known service IDs.
-
getDiscoveryClients
-