public class ZookeeperProviderObserver extends AbstractZookeeperObserver
| 构造器和说明 |
|---|
ZookeeperProviderObserver() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addProvider(ConsumerConfig config,
String providerPath,
org.apache.curator.framework.recipes.cache.ChildData data) |
void |
addProviderListener(ConsumerConfig consumerConfig,
ProviderInfoListener listener)
Add provider listener.
|
void |
removeProvider(ConsumerConfig config,
String providerPath,
org.apache.curator.framework.recipes.cache.ChildData data) |
void |
removeProviderListener(ConsumerConfig consumerConfig)
Remove provider listener.
|
void |
updateProvider(ConsumerConfig config,
String providerPath,
org.apache.curator.framework.recipes.cache.ChildData data) |
initOrAddListpublic void addProviderListener(ConsumerConfig consumerConfig, ProviderInfoListener listener)
consumerConfig - the consumer configlistener - the listenerpublic void removeProviderListener(ConsumerConfig consumerConfig)
consumerConfig - the consumer configpublic void updateProvider(ConsumerConfig config, String providerPath, org.apache.curator.framework.recipes.cache.ChildData data) throws UnsupportedEncodingException
public void removeProvider(ConsumerConfig config, String providerPath, org.apache.curator.framework.recipes.cache.ChildData data) throws UnsupportedEncodingException
public void addProvider(ConsumerConfig config, String providerPath, org.apache.curator.framework.recipes.cache.ChildData data) throws UnsupportedEncodingException
Copyright © 2008–2018 The Ant Financial. All rights reserved.