@Singleton public class ConfigurationServiceLocator extends CircuitBreakingServiceLocator
Constructor and Description |
---|
ConfigurationServiceLocator(com.typesafe.config.Config config,
CircuitBreakersPanel circuitBreakersPanel) |
ConfigurationServiceLocator(Configuration configuration,
com.lightbend.lagom.internal.client.CircuitBreakers circuitBreakers)
Deprecated.
Use constructor accepting
CircuitBreakersPanel instead |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Optional<URI>> |
locate(String name,
Descriptor.Call<?,?> serviceCall)
Locate a service's URI for the given name.
|
CompletionStage<List<URI>> |
locateAll(String name,
Descriptor.Call<?,?> serviceCall)
Locate the service's URIs for the given name.
|
doWithService
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
locate, locateAll
@Deprecated public ConfigurationServiceLocator(Configuration configuration, com.lightbend.lagom.internal.client.CircuitBreakers circuitBreakers)
CircuitBreakersPanel
insteadcircuitBreakers
- @Inject public ConfigurationServiceLocator(com.typesafe.config.Config config, CircuitBreakersPanel circuitBreakersPanel)
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.public CompletionStage<List<URI>> locateAll(String name, Descriptor.Call<?,?> serviceCall)
ServiceLocator
name
- The name of the service.serviceCall
- The service call descriptor that this lookup is for.