@Test public void afterError_clientExecutionTimeoutException() { Request<?> request = getRequest(); AWSRequestMetrics metrics = getMetrics(1); request.setAWSRequestMetrics(metrics); requestHandler.afterError(request, getResponse(request), new ClientExecutionTimeoutException("")); ApiCallMonitoringEvent event = getCapturedEvent(ApiCallMonitoringEvent.class); assertThat(event.getApiCallTimeout(), is(1)); }
@Override public void afterError(Request<?> request, Response<?> response, Exception e) { ApiCallMonitoringEvent event = generateApiCallMonitoringEvent(request, e); handToMonitoringListeners(event); }
ClientSideMonitoringRequestHandler extends RequestHandler2 { @Override public void afterError(Request<?> request, Response<?> response, Exception e) { ApiCallMonitoringEvent event = generateApiCallMonitoringEvent(request, e); handToMonitoringListeners(event); } }
ClientSideMonitoringRequestHandler extends RequestHandler2 { @Override public void afterError(Request<?> request, Response<?> response, Exception e) { ApiCallMonitoringEvent event = generateApiCallMonitoringEvent(request, e); handToMonitoringListeners(event); } ClientSideMonitoringRequestHandler(String clientId, Collection<MonitoringListener> monitoringListeners); }
ClientSideMonitoringRequestHandler extends RequestHandler2 { @Override public void afterError(Request<?> request, Response<?> response, Exception e) { ApiCallMonitoringEvent event = generateApiCallMonitoringEvent(request, e); handToMonitoringListeners(event); } ClientSideMonitoringRequestHandler(String clientId, Collection<MonitoringListener> monitoringListeners); @Override void afterAttempt(HandlerAfterAttemptContext context); @Override void afterResponse(Request<?> request, Response<?> response); @Override void afterError(Request<?> request, Response<?> response, Exception e); }
ClientSideMonitoringRequestHandler extends RequestHandler2 { @Override public void afterError(Request<?> request, Response<?> response, Exception e) { ApiCallMonitoringEvent event = generateApiCallMonitoringEvent(request, e); handToMonitoringListeners(event); } ClientSideMonitoringRequestHandler(String clientId, Collection<MonitoringListener> monitoringListeners); @Override void afterAttempt(HandlerAfterAttemptContext context); @Override void afterResponse(Request<?> request, Response<?> response); @Override void afterError(Request<?> request, Response<?> response, Exception e);  }