类 NamingFuzzyWatchServiceListHolder
java.lang.Object
com.alibaba.nacos.common.notify.listener.Subscriber<com.alibaba.nacos.common.notify.Event>
com.alibaba.nacos.common.notify.listener.SmartSubscriber
com.alibaba.nacos.client.naming.cache.NamingFuzzyWatchServiceListHolder
- 所有已实现的接口:
com.alibaba.nacos.common.lifecycle.Closeable
public class NamingFuzzyWatchServiceListHolder
extends com.alibaba.nacos.common.notify.listener.SmartSubscriber
implements com.alibaba.nacos.common.lifecycle.Closeable
Naming client fuzzy watch service list holder.
- 作者:
- tanyongquan
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidExecute fuzzy listen configuration changes.getFuzzyWatchContext(String groupKeyPattern) initFuzzyWatchContextIfNeed(String groupKeyPattern) init fuzzy watch context.voidonEvent(com.alibaba.nacos.common.notify.Event event) registerFuzzyWatcher(String groupKeyPattern, com.alibaba.nacos.api.naming.listener.FuzzyWatchEventWatcher watcher) Add a watcher to the context.voidregisterNamingGrpcClientProxy(NamingGrpcClientProxy namingGrpcClientProxy) voidremovePatternMatchCache(String groupKeyPattern) remove fuzzy watch context for pattern.voidvoidshutdown()shut down.voidstart()start.从类继承的方法 com.alibaba.nacos.common.notify.listener.SmartSubscriber
ignoreExpireEvent, subscribeType从类继承的方法 com.alibaba.nacos.common.notify.listener.Subscriber
executor, scopeMatches
-
构造器详细资料
-
NamingFuzzyWatchServiceListHolder
-
-
方法详细资料
-
shutdown
public void shutdown()shut down.- 指定者:
shutdown在接口中com.alibaba.nacos.common.lifecycle.Closeable
-
start
public void start()start. -
registerNamingGrpcClientProxy
-
getFuzzyWatchContext
-
registerFuzzyWatcher
public NamingFuzzyWatchContext registerFuzzyWatcher(String groupKeyPattern, com.alibaba.nacos.api.naming.listener.FuzzyWatchEventWatcher watcher) Add a watcher to the context.- 参数:
watcher- watcher to be added
-
initFuzzyWatchContextIfNeed
init fuzzy watch context.- 参数:
groupKeyPattern- groupKeyPattern.- 返回:
- fuzzy context.
-
removePatternMatchCache
remove fuzzy watch context for pattern.- 参数:
groupKeyPattern- group key pattern.
-
executeNamingFuzzyWatch
public void executeNamingFuzzyWatch() throws com.alibaba.nacos.api.exception.NacosExceptionExecute fuzzy listen configuration changes.This method iterates through all fuzzy listen contexts and determines whether they need to be added or removed based on their consistency with the server and discard status. It then calls the appropriate method to execute the fuzzy listen operation.
- 抛出:
com.alibaba.nacos.api.exception.NacosException- If an error occurs during the execution of fuzzy listen configuration changes.
-
resetConsistenceStatus
public void resetConsistenceStatus() -
getFuzzyMatchContextMap
-
onEvent
public void onEvent(com.alibaba.nacos.common.notify.Event event) - 指定者:
onEvent在类中com.alibaba.nacos.common.notify.listener.Subscriber<com.alibaba.nacos.common.notify.Event>
-
subscribeTypes
- 指定者:
subscribeTypes在类中com.alibaba.nacos.common.notify.listener.SmartSubscriber
-
getNotifierEventScope
-