public class DynamicServiceInstanceProvider extends Object implements ServiceInstanceProvider
ServiceInstanceProvider to work with a DiscoveryClient to lookup a service by name. Will pick 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 in case the service is currently unavailable.
|
public DynamicServiceInstanceProvider(DiscoveryClient client, String serviceName)
public ServiceInstance getServiceInstance()
ServiceInstanceProvidergetServiceInstance in interface ServiceInstanceProviderCopyright © 2018 Pivotal Software, Inc.. All rights reserved.