Package io.airlift.discovery.client
Class DiscoveryModule
- java.lang.Object
-
- io.airlift.discovery.client.DiscoveryModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class DiscoveryModule extends Object implements com.google.inject.Module
-
-
Constructor Summary
Constructors Constructor Description DiscoveryModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)MergingServiceSelectorFactorycreateMergingServiceSelectorFactory(CachingServiceSelectorFactory factory, Announcer announcer, NodeInfo nodeInfo)Supplier<URI>getDiscoveryUriSupplier(ServiceInventory serviceInventory, DiscoveryClientConfig config)
-
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
getDiscoveryUriSupplier
@Provides public Supplier<URI> getDiscoveryUriSupplier(ServiceInventory serviceInventory, DiscoveryClientConfig config)
-
createMergingServiceSelectorFactory
@Provides @Singleton public MergingServiceSelectorFactory createMergingServiceSelectorFactory(CachingServiceSelectorFactory factory, Announcer announcer, NodeInfo nodeInfo)
-
-