类 ClientWorker.ConfigRpcTransportClient

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      private com.alibaba.nacos.api.config.remote.request.ConfigBatchListenRequest buildConfigRequest​(java.util.List<CacheData> caches)
      build config string.
      private com.alibaba.nacos.common.remote.client.RpcClient ensureRpcClient​(java.lang.String taskId)  
      void executeConfigListen()
      listen change .
      private com.alibaba.nacos.common.remote.ConnectionType getConnectionType()  
      private java.util.Map<java.lang.String,​java.lang.String> getLabels()  
      java.lang.String getName()
      get client name.
      (专用程序包) com.alibaba.nacos.common.remote.client.RpcClient getOneRunningClient()  
      private com.alibaba.nacos.api.ability.ClientAbilities initAbilities()  
      private void initRpcClientHandler​(com.alibaba.nacos.common.remote.client.RpcClient rpcClientInner)  
      void notifyListenConfig()
      notify listen config.
      boolean publishConfig​(java.lang.String dataId, java.lang.String group, java.lang.String tenant, java.lang.String appName, java.lang.String tag, java.lang.String betaIps, java.lang.String content, java.lang.String encryptedDataKey, java.lang.String casMd5, java.lang.String type)
      publish config.
      ConfigResponse queryConfig​(java.lang.String dataId, java.lang.String group, java.lang.String tenant, long readTimeouts, boolean notify)
      query config.
      void removeCache​(java.lang.String dataId, java.lang.String group)
      remove cache implements.
      boolean removeConfig​(java.lang.String dataId, java.lang.String group, java.lang.String tenant, java.lang.String tag)
      remove config.
      private com.alibaba.nacos.api.remote.response.Response requestProxy​(com.alibaba.nacos.common.remote.client.RpcClient rpcClientInner, com.alibaba.nacos.api.remote.request.Request request)  
      private com.alibaba.nacos.api.remote.response.Response requestProxy​(com.alibaba.nacos.common.remote.client.RpcClient rpcClientInner, com.alibaba.nacos.api.remote.request.Request request, long timeoutMills)  
      private com.alibaba.nacos.plugin.auth.api.RequestResource resourceBuild​(com.alibaba.nacos.api.remote.request.Request request)  
      void shutdown()  
      void startInternal()
      start client inner.
      private boolean unListenConfigChange​(com.alibaba.nacos.common.remote.client.RpcClient rpcClient, com.alibaba.nacos.api.config.remote.request.ConfigBatchListenRequest configChangeListenRequest)
      send cancel listen config change request .
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • listenExecutebell

        private final java.util.concurrent.BlockingQueue<java.lang.Object> listenExecutebell
      • bellItem

        private java.lang.Object bellItem
      • lastAllSyncTime

        private long lastAllSyncTime
      • ALL_SYNC_INTERNAL

        private static final long ALL_SYNC_INTERNAL
        5 minutes to check all listen cache keys.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ConfigRpcTransportClient

        public ConfigRpcTransportClient​(java.util.Properties properties,
                                        ServerListManager serverListManager)
    • 方法详细资料

      • getConnectionType

        private com.alibaba.nacos.common.remote.ConnectionType getConnectionType()
      • shutdown

        public void shutdown()
                      throws com.alibaba.nacos.api.exception.NacosException
        覆盖:
        shutdown 在类中 ConfigTransportClient
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • getLabels

        private java.util.Map<java.lang.String,​java.lang.String> getLabels()
      • initRpcClientHandler

        private void initRpcClientHandler​(com.alibaba.nacos.common.remote.client.RpcClient rpcClientInner)
      • ensureRpcClient

        private com.alibaba.nacos.common.remote.client.RpcClient ensureRpcClient​(java.lang.String taskId)
                                                                          throws com.alibaba.nacos.api.exception.NacosException
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • initAbilities

        private com.alibaba.nacos.api.ability.ClientAbilities initAbilities()
      • buildConfigRequest

        private com.alibaba.nacos.api.config.remote.request.ConfigBatchListenRequest buildConfigRequest​(java.util.List<CacheData> caches)
        build config string.
        参数:
        caches - caches to build config string.
        返回:
        request.
      • unListenConfigChange

        private boolean unListenConfigChange​(com.alibaba.nacos.common.remote.client.RpcClient rpcClient,
                                             com.alibaba.nacos.api.config.remote.request.ConfigBatchListenRequest configChangeListenRequest)
                                      throws com.alibaba.nacos.api.exception.NacosException
        send cancel listen config change request .
        参数:
        configChangeListenRequest - request of remove listen config string.
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • queryConfig

        public ConfigResponse queryConfig​(java.lang.String dataId,
                                          java.lang.String group,
                                          java.lang.String tenant,
                                          long readTimeouts,
                                          boolean notify)
                                   throws com.alibaba.nacos.api.exception.NacosException
        从类复制的说明: ConfigTransportClient
        query config.
        指定者:
        queryConfig 在类中 ConfigTransportClient
        参数:
        dataId - dataId.
        group - group.
        tenant - tenat.
        readTimeouts - readTimeous.
        notify - query for notify sync.
        返回:
        content.
        抛出:
        com.alibaba.nacos.api.exception.NacosException - throw where query fail .
      • requestProxy

        private com.alibaba.nacos.api.remote.response.Response requestProxy​(com.alibaba.nacos.common.remote.client.RpcClient rpcClientInner,
                                                                            com.alibaba.nacos.api.remote.request.Request request)
                                                                     throws com.alibaba.nacos.api.exception.NacosException
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • requestProxy

        private com.alibaba.nacos.api.remote.response.Response requestProxy​(com.alibaba.nacos.common.remote.client.RpcClient rpcClientInner,
                                                                            com.alibaba.nacos.api.remote.request.Request request,
                                                                            long timeoutMills)
                                                                     throws com.alibaba.nacos.api.exception.NacosException
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • resourceBuild

        private com.alibaba.nacos.plugin.auth.api.RequestResource resourceBuild​(com.alibaba.nacos.api.remote.request.Request request)
      • getOneRunningClient

        com.alibaba.nacos.common.remote.client.RpcClient getOneRunningClient()
                                                                      throws com.alibaba.nacos.api.exception.NacosException
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • publishConfig

        public boolean publishConfig​(java.lang.String dataId,
                                     java.lang.String group,
                                     java.lang.String tenant,
                                     java.lang.String appName,
                                     java.lang.String tag,
                                     java.lang.String betaIps,
                                     java.lang.String content,
                                     java.lang.String encryptedDataKey,
                                     java.lang.String casMd5,
                                     java.lang.String type)
                              throws com.alibaba.nacos.api.exception.NacosException
        从类复制的说明: ConfigTransportClient
        publish config.
        指定者:
        publishConfig 在类中 ConfigTransportClient
        参数:
        dataId - dataId.
        group - group.
        tenant - tenant.
        appName - appName.
        tag - tag.
        betaIps - betaIps.
        content - content.
        encryptedDataKey - encryptedDataKey
        casMd5 - casMd5.
        type - type.
        返回:
        success or not.
        抛出:
        com.alibaba.nacos.api.exception.NacosException - throw where publish fail.
      • removeConfig

        public boolean removeConfig​(java.lang.String dataId,
                                    java.lang.String group,
                                    java.lang.String tenant,
                                    java.lang.String tag)
                             throws com.alibaba.nacos.api.exception.NacosException
        从类复制的说明: ConfigTransportClient
        remove config.
        指定者:
        removeConfig 在类中 ConfigTransportClient
        参数:
        dataId - dataid.
        group - group.
        tenant - tenat.
        tag - tag.
        返回:
        success or not.
        抛出:
        com.alibaba.nacos.api.exception.NacosException - throw where publish fail.