public interface ServiceInstanceChooser
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
choose(String serviceId)
Chooses a ServiceInstance from the LoadBalancer for the specified service.
|
<T> ServiceInstance |
choose(String serviceId,
Request<T> request)
Chooses a ServiceInstance from the LoadBalancer for the specified service and
LoadBalancer request.
|
ServiceInstance choose(String serviceId)
serviceId - The service ID to look up the LoadBalancer.<T> ServiceInstance choose(String serviceId, Request<T> request)
T - The type of the request context.serviceId - The service ID to look up the LoadBalancer.request - The request to pass on to the LoadBalancerCopyright © 2021 Pivotal Software, Inc.. All rights reserved.