public final class HttpClientBeanHolder extends Object
| 构造器和说明 |
|---|
HttpClientBeanHolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static NacosAsyncRestTemplate |
getNacosAsyncRestTemplate() |
static NacosAsyncRestTemplate |
getNacosAsyncRestTemplate(HttpClientFactory httpClientFactory) |
static NacosRestTemplate |
getNacosRestTemplate() |
static NacosRestTemplate |
getNacosRestTemplate(HttpClientFactory httpClientFactory) |
static void |
shutdown()
Shutdown http client holder and close all template.
|
public static NacosRestTemplate getNacosRestTemplate()
public static NacosRestTemplate getNacosRestTemplate(HttpClientFactory httpClientFactory)
public static NacosAsyncRestTemplate getNacosAsyncRestTemplate()
public static NacosAsyncRestTemplate getNacosAsyncRestTemplate(HttpClientFactory httpClientFactory)
public static void shutdown()
Copyright © 2018–2020 Alibaba Group. All rights reserved.