public class RequestStatsCollector extends Object implements RequestProgressListener
IGNORE_REQUEST_PROGRESS| Constructor and Description |
|---|
RequestStatsCollector(MetricRegistry metrics)
Constructs a collector with a
MetricRegistry to report stastistics to. |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(Object requestId,
int responseStatus)
To be called when a request completes successfully.
|
void |
onRequest(Object requestId)
To be called when a request begins.
|
void |
onTerminate(Object requestId)
To be called when a request is terminated after being unable to complete successfully.
|
public RequestStatsCollector(MetricRegistry metrics)
MetricRegistry to report stastistics to.metrics - a registry to report topublic void onRequest(Object requestId)
RequestProgressListeneronRequest in interface RequestProgressListenerrequestId - a unique ID to identify the requestpublic void onComplete(Object requestId, int responseStatus)
RequestProgressListeneronComplete in interface RequestProgressListenerrequestId - a unique ID to identify the requestresponseStatus - the status code of the responsepublic void onTerminate(Object requestId)
RequestProgressListeneronTerminate in interface RequestProgressListenerrequestId - a unique ID to identify the requestCopyright © 2013–2020 Hotels.com. All rights reserved.