public class CachingServiceSelector extends Object implements ServiceSelector
| Constructor and Description |
|---|
CachingServiceSelector(String type,
ServiceSelectorConfig selectorConfig,
DiscoveryLookupClient lookupClient,
ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPool() |
String |
getType() |
com.google.common.util.concurrent.ListenableFuture<List<ServiceDescriptor>> |
refresh() |
List<ServiceDescriptor> |
selectAllServices() |
void |
start() |
public CachingServiceSelector(String type, ServiceSelectorConfig selectorConfig, DiscoveryLookupClient lookupClient, ScheduledExecutorService executor)
@PostConstruct public void start()
public String getType()
getType in interface ServiceSelectorpublic String getPool()
getPool in interface ServiceSelectorpublic List<ServiceDescriptor> selectAllServices()
selectAllServices in interface ServiceSelectorpublic com.google.common.util.concurrent.ListenableFuture<List<ServiceDescriptor>> refresh()
refresh in interface ServiceSelectorCopyright © 2010–2021 Airlift. All rights reserved.