Package io.airlift.discovery.client
Class CachingServiceSelector
java.lang.Object
io.airlift.discovery.client.CachingServiceSelector
- All Implemented Interfaces:
ServiceSelector
-
Constructor Summary
ConstructorsConstructorDescriptionCachingServiceSelector(String type, ServiceSelectorConfig selectorConfig, DiscoveryLookupClient lookupClient, ScheduledExecutorService executor) -
Method Summary
-
Constructor Details
-
CachingServiceSelector
public CachingServiceSelector(String type, ServiceSelectorConfig selectorConfig, DiscoveryLookupClient lookupClient, ScheduledExecutorService executor)
-
-
Method Details
-
start
@PostConstruct public void start() -
getType
- Specified by:
getTypein interfaceServiceSelector
-
getPool
- Specified by:
getPoolin interfaceServiceSelector
-
selectAllServices
- Specified by:
selectAllServicesin interfaceServiceSelector
-
refresh
- Specified by:
refreshin interfaceServiceSelector
-