public final class HttpClientBeanHolder extends Object
| 构造器和说明 |
|---|
HttpClientBeanHolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static NacosAsyncRestTemplate |
getNacosAsyncRestTemplate(HttpClientFactory httpClientFactory) |
static NacosAsyncRestTemplate |
getNacosAsyncRestTemplate(org.slf4j.Logger logger) |
static NacosRestTemplate |
getNacosRestTemplate(HttpClientFactory httpClientFactory) |
static NacosRestTemplate |
getNacosRestTemplate(org.slf4j.Logger logger) |
static void |
shutdown(String className)
Shutdown http client holder and close remove template.
|
static void |
shutdownNacosAsyncRest(String className)
Shutdown async http client holder and remove template.
|
static void |
shutdownNacostSyncRest(String className)
Shutdown sync http client holder and remove template.
|
public static NacosRestTemplate getNacosRestTemplate(org.slf4j.Logger logger)
public static NacosRestTemplate getNacosRestTemplate(HttpClientFactory httpClientFactory)
public static NacosAsyncRestTemplate getNacosAsyncRestTemplate(org.slf4j.Logger logger)
public static NacosAsyncRestTemplate getNacosAsyncRestTemplate(HttpClientFactory httpClientFactory)
public static void shutdown(String className) throws Exception
className - HttpClientFactory implement class nameException - expublic static void shutdownNacostSyncRest(String className) throws Exception
className - HttpClientFactory implement class nameException - exCopyright © 2018–2022 Alibaba Group. All rights reserved.