public class OKHttpRestClient extends Object implements RestClient
| 构造器和说明 |
|---|
OKHttpRestClient(HttpClientConfig clientConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close the channel.
|
void |
close(int timeout)
Graceful close the channel.
|
okhttp3.OkHttpClient |
createHttpClient(HttpClientConfig httpClientConfig) |
boolean |
isClosed()
is closed.
|
CompletableFuture<RestResult> |
send(RequestTemplate requestTemplate)
send message.
|
public OKHttpRestClient(HttpClientConfig clientConfig)
public CompletableFuture<RestResult> send(RequestTemplate requestTemplate)
RestClientsend 在接口中 RestClientpublic void close()
RestClientclose 在接口中 RestClientpublic void close(int timeout)
RestClientclose 在接口中 RestClientpublic boolean isClosed()
RestClientisClosed 在接口中 RestClientpublic okhttp3.OkHttpClient createHttpClient(HttpClientConfig httpClientConfig)
Copyright © 2024 The Apache Software Foundation. All rights reserved.