protected void noteResponse ( ServerStats stats , ClientRequest request , Object response , long responseTime ) { if ( stats == null ) { return ; } try { recordStats ( stats , responseTime ) ; RetryHandler errorHandler = getRetryHandler ( ) ; if ( errorHandler != null && response != null ) { stats . clearSuccessiveConnectionFailureCount ( ) ; } } catch ( Exception ex ) { logger . error ( "Error noting stats for client {}" , clientName , ex ) ; } }
This is called after a response is received from the client to update related stats .