public interface RoutingStrategy
| Modifier and Type | Method | Description |
|---|---|---|
ServiceLocator |
locateInstances(ServiceInstanceBackend serviceInstanceBackend,
String serviceName) |
Creates a new ServiceLocator object which can be used to locate one or more instances according to
implementation of this interface.
|
default void |
reset() |
Resets any internal state of this RoutingStrategy implementation.
|
ServiceLocator locateInstances(ServiceInstanceBackend serviceInstanceBackend, String serviceName)
serviceInstanceBackend - The ServiceInstanceBackend to use to fetch data from Consul.serviceName - The name of the service instance to locate.default void reset()
Copyright © 2022. All rights reserved.