A Handler that helps recording the total latency of the requests executed by the wrapped handler.
The latency reported by onRequestComplete(String, long) is the delay between when the request arrived to a connector until the completion of that
request.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | onComplete(Request
the request object. The request, Throwable read(), demand(Runnable) and fail(Throwable) methods must not be called by the listener.if there was a failure to complete failure)Overrides org. Invoked when the request and response processing are complete,
just before the request and response will be recycled (i.e. after the
|
| protected abstract void | onRequestComplete(String
the ID of the request requestId, long the duration in nanoseconds of the completed request durationInNs)Called back for each completed request with its execution's latency. |
| LatencyRecordingHandler | back to summary |
|---|---|
| public LatencyRecordingHandler() | |
| LatencyRecordingHandler | back to summary |
|---|---|
| public LatencyRecordingHandler(Handler handler) | |
| onComplete | back to summary |
|---|---|
| protected final void onComplete(Request request, Throwable failure) Overrides org. Doc from org. Invoked when the request and response processing are complete,
just before the request and response will be recycled (i.e. after the
| |
| onRequestComplete | back to summary |
|---|---|
| protected abstract void onRequestComplete(String requestId, long durationInNs) Called back for each completed request with its execution's latency.
| |