Package io.airlift.discovery.server
Class DiscoveryServiceSelector
java.lang.Object
io.airlift.discovery.server.DiscoveryServiceSelector
- All Implemented Interfaces:
io.airlift.discovery.client.ServiceSelector
public class DiscoveryServiceSelector
extends Object
implements io.airlift.discovery.client.ServiceSelector
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryServiceSelector(io.airlift.node.NodeInfo nodeInfo, io.airlift.discovery.client.ServiceInventory inventory) -
Method Summary
-
Constructor Details
-
DiscoveryServiceSelector
@Inject public DiscoveryServiceSelector(io.airlift.node.NodeInfo nodeInfo, io.airlift.discovery.client.ServiceInventory inventory)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceio.airlift.discovery.client.ServiceSelector
-
getPool
- Specified by:
getPoolin interfaceio.airlift.discovery.client.ServiceSelector
-
selectAllServices
- Specified by:
selectAllServicesin interfaceio.airlift.discovery.client.ServiceSelector
-
refresh
public com.google.common.util.concurrent.ListenableFuture<List<io.airlift.discovery.client.ServiceDescriptor>> refresh()- Specified by:
refreshin interfaceio.airlift.discovery.client.ServiceSelector
-