@HmilySPI(value="consul") public class ConsulConfigLoader extends Object implements ConfigLoader<ConsulConfig>
ConfigLoader.Context, ConfigLoader.LoaderHandler<T extends org.dromara.hmily.config.api.Config>, ConfigLoader.PassiveHandler<T extends org.dromara.hmily.config.api.Config>LOG| 构造器和说明 |
|---|
ConsulConfigLoader()
Instantiates a new Consul config loader.
|
ConsulConfigLoader(ConsulClient client)
Instantiates a new Consul config loader.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
load(Supplier<ConfigLoader.Context> context,
ConfigLoader.LoaderHandler<ConsulConfig> handler) |
void |
passive(Supplier<ConfigLoader.Context> context,
ConfigLoader.PassiveHandler<org.dromara.hmily.config.api.Config> handler,
org.dromara.hmily.config.api.Config config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitagainLoad, pushpublic ConsulConfigLoader()
public ConsulConfigLoader(ConsulClient client)
client - the clientpublic void load(Supplier<ConfigLoader.Context> context, ConfigLoader.LoaderHandler<ConsulConfig> handler)
load 在接口中 ConfigLoader<ConsulConfig>public void passive(Supplier<ConfigLoader.Context> context, ConfigLoader.PassiveHandler<org.dromara.hmily.config.api.Config> handler, org.dromara.hmily.config.api.Config config)
passive 在接口中 ConfigLoader<ConsulConfig>Copyright © 2022 dromara. All rights reserved.