类 HttpClientBeanHolder
java.lang.Object
com.alibaba.nacos.common.http.HttpClientBeanHolder
Create a rest template to ensure that each custom client config and rest template are in one-to-one correspondence.
- 作者:
- mai.jh
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static NacosAsyncRestTemplategetNacosAsyncRestTemplate(HttpClientFactory httpClientFactory)static NacosAsyncRestTemplategetNacosAsyncRestTemplate(org.slf4j.Logger logger)static NacosRestTemplategetNacosRestTemplate(HttpClientFactory httpClientFactory)static NacosRestTemplategetNacosRestTemplate(org.slf4j.Logger logger)static voidShutdown http client holder and close remove template.static voidshutdownNacosAsyncRest(String className)Shutdown async http client holder and remove template.static voidshutdownNacostSyncRest(String className)Shutdown sync http client holder and remove template.
-
构造器详细资料
-
HttpClientBeanHolder
public HttpClientBeanHolder()
-
-
方法详细资料
-
getNacosRestTemplate
-
getNacosRestTemplate
-
getNacosAsyncRestTemplate
-
getNacosAsyncRestTemplate
public static NacosAsyncRestTemplate getNacosAsyncRestTemplate(HttpClientFactory httpClientFactory) -
shutdown
Shutdown http client holder and close remove template.- 参数:
className- HttpClientFactory implement class name- 抛出:
Exception- ex
-
shutdownNacostSyncRest
Shutdown sync http client holder and remove template.- 参数:
className- HttpClientFactory implement class name- 抛出:
Exception- ex
-
shutdownNacosAsyncRest
Shutdown async http client holder and remove template.- 参数:
className- HttpClientFactory implement class name- 抛出:
Exception- ex
-