类 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
  • 构造器详细资料

    • NamingFuzzyWatchServiceListHolder

      public NamingFuzzyWatchServiceListHolder(String notifierEventScope)
  • 方法详细资料

    • shutdown

      public void shutdown()
      shut down.
      指定者:
      shutdown 在接口中 com.alibaba.nacos.common.lifecycle.Closeable
    • start

      public void start()
      start.
    • registerNamingGrpcClientProxy

      public void registerNamingGrpcClientProxy(NamingGrpcClientProxy namingGrpcClientProxy)
    • getFuzzyWatchContext

      public NamingFuzzyWatchContext getFuzzyWatchContext(String groupKeyPattern)
    • 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

      public NamingFuzzyWatchContext initFuzzyWatchContextIfNeed(String groupKeyPattern)
      init fuzzy watch context.
      参数:
      groupKeyPattern - groupKeyPattern.
      返回:
      fuzzy context.
    • removePatternMatchCache

      public void removePatternMatchCache(String groupKeyPattern)
      remove fuzzy watch context for pattern.
      参数:
      groupKeyPattern - group key pattern.
    • executeNamingFuzzyWatch

      public void executeNamingFuzzyWatch() throws com.alibaba.nacos.api.exception.NacosException
      Execute 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

      public Map<String,NamingFuzzyWatchContext> 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

      public List<Class<? extends com.alibaba.nacos.common.notify.Event>> subscribeTypes()
      指定者:
      subscribeTypes 在类中 com.alibaba.nacos.common.notify.listener.SmartSubscriber
    • getNotifierEventScope

      public String getNotifierEventScope()