Class SimpleServiceSelector
java.lang.Object
io.airlift.discovery.client.testing.SimpleServiceSelector
- All Implemented Interfaces:
ServiceSelector
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleServiceSelector(String type, ServiceSelectorConfig selectorConfig, DiscoveryLookupClient lookupClient) -
Method Summary
Modifier and TypeMethodDescriptiongetPool()getType()com.google.common.util.concurrent.ListenableFuture<List<ServiceDescriptor>> refresh()
-
Constructor Details
-
SimpleServiceSelector
public SimpleServiceSelector(String type, ServiceSelectorConfig selectorConfig, DiscoveryLookupClient lookupClient)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceServiceSelector
-
getPool
- Specified by:
getPoolin interfaceServiceSelector
-
selectAllServices
- Specified by:
selectAllServicesin interfaceServiceSelector
-
refresh
- Specified by:
refreshin interfaceServiceSelector
-