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() |
Modifier and Type | Method and Description |
---|---|
ServiceInstance |
getServiceInstance()
Returns the service instance or null in case the service is currently unavailable.
|
public ServiceInstance getServiceInstance()
ServiceInstanceProvider
getServiceInstance
in interface ServiceInstanceProvider
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.