接口 RequestMetrics
public interface RequestMetrics
A type to report common metrics shared among all request types.
If a request retries, there will be multiple calls to all methods below. Ignore any endRequest after the first one. For example:
- constructor - request starts
- startNetwork / endNetwork - original request
- startNetwork / endNetwork - retried request
- endRequest - request finished (retry)
- endRequest - request finished (original)
The following metrics can be computed: Total queries, successful queries, total latency, network latency
-
方法概要
修饰符和类型 方法 说明 voidendNetwork()voidendRequest(java.lang.Exception exception, int httpStatusCode, long retryCount)voidstartNetwork()
-
方法详细资料
-
startNetwork
void startNetwork() -
endNetwork
void endNetwork() -
endRequest
void endRequest(java.lang.Exception exception, int httpStatusCode, long retryCount)
-