public class HTTPCaller extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
HTTPCaller(String tenantID,
Auth.Credential authCredential,
HostAvailabler hostAvailabler,
okhttp3.OkHttpClient callerClient,
boolean keepAlive) |
protected |
HTTPCaller(String tenantID,
String air_auth_token,
HostAvailabler hostAvailabler,
okhttp3.OkHttpClient callerClient,
boolean keepAlive) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <Rsp> Rsp |
doJSONRequest(String url,
Object request,
Rsp resp,
Options options) |
protected <Rsp extends com.google.protobuf.Message,Req extends com.google.protobuf.Message> |
doPBRequest(String url,
Req request,
com.google.protobuf.Parser<Rsp> rspParser,
Options options) |
protected void |
initHeartbeatExecutor(Duration keepAlivePingInterval) |
void |
shutdown() |
protected HTTPCaller(String tenantID, String air_auth_token, HostAvailabler hostAvailabler, okhttp3.OkHttpClient callerClient, boolean keepAlive)
protected HTTPCaller(String tenantID, Auth.Credential authCredential, HostAvailabler hostAvailabler, okhttp3.OkHttpClient callerClient, boolean keepAlive)
protected void initHeartbeatExecutor(Duration keepAlivePingInterval)
protected <Rsp extends com.google.protobuf.Message,Req extends com.google.protobuf.Message> Rsp doPBRequest(String url, Req request, com.google.protobuf.Parser<Rsp> rspParser, Options options) throws NetException, BizException
protected <Rsp> Rsp doJSONRequest(String url, Object request, Rsp resp, Options options) throws NetException, BizException
public void shutdown()
Copyright © 2022. All rights reserved.