public class DynamicServiceInstanceProvider extends Object implements ServiceInstanceProvider
ServiceInstanceProvider to work with a DiscoveryClient to look up a
service by name. Picks the first one returned by the configured
DiscoveryClient.| Constructor and Description |
|---|
DynamicServiceInstanceProvider(DiscoveryClient client,
String serviceName) |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
getServiceInstance()
Returns the service instance or null if the service is currently
unavailable.
|
public DynamicServiceInstanceProvider(DiscoveryClient client, String serviceName)
public ServiceInstance getServiceInstance()
ServiceInstanceProvidergetServiceInstance in interface ServiceInstanceProviderCopyright © 2019 Pivotal Software, Inc.. All rights reserved.