@Singleton public class ConfigurationServiceLocator extends CircuitBreakingServiceLocator
Constructor and Description |
---|
ConfigurationServiceLocator(Configuration configuration,
com.lightbend.lagom.internal.client.CircuitBreakers circuitBreakers) |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Optional<URI>> |
locate(String name,
Descriptor.Call<?,?> serviceCall)
Locate a service with the given name.
|
doWithService
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
locate
@Inject public ConfigurationServiceLocator(Configuration configuration, com.lightbend.lagom.internal.client.CircuitBreakers circuitBreakers)
public CompletionStage<Optional<URI>> locate(String name, Descriptor.Call<?,?> serviceCall)
ServiceLocator
name
- The name of the service.serviceCall
- The service call descriptor that this lookup is for.