public interface Tracker
Modifier and Type | Method and Description |
---|---|
void |
onFailure(IoTRequest request,
java.lang.Exception e)
当发送请求失败时触发
|
void |
onRawFailure(IoTRequestWrapper request,
java.lang.Exception e)
当
IoTHttpClientAdapter 发送请求失败时触发 |
void |
onRawResponse(IoTRequestWrapper request,
IoTResponse response)
当
IoTHttpClientAdapter 收到 API 网关响应时,触发 |
void |
onRealSend(IoTRequestWrapper request)
|
void |
onResponse(IoTRequest request,
IoTResponse response)
当收到 API 网关响应时触发
|
void |
onSend(IoTRequest request)
|
void onSend(IoTRequest request)
request
- 请求描述void onFailure(IoTRequest request, java.lang.Exception e)
request
- 请求描述e
- 异常信息void onResponse(IoTRequest request, IoTResponse response)
request
- 请求描述response
- 服务器响应描述void onRealSend(IoTRequestWrapper request)
request
- 组装后的请求void onRawFailure(IoTRequestWrapper request, java.lang.Exception e)
IoTHttpClientAdapter
发送请求失败时触发request
- 组装后的请求e
- 异常信息void onRawResponse(IoTRequestWrapper request, IoTResponse response)
IoTHttpClientAdapter
收到 API 网关响应时,触发request
- 组装后的请求response
- API 网关的原始响应