@Singleton public class ConfigurationServiceLocator extends CircuitBreakingServiceLocator
Constructor and Description |
---|
ConfigurationServiceLocator(com.typesafe.config.Config config,
CircuitBreakersPanel circuitBreakersPanel) |
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
@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.