public long getOverallLatency ( ) { if ( maxAttempts <= 1 || originalStart < 0 ) { return getLatency ( ) ; } else if ( events . isEmpty ( ) ) { return - 1 ; } else { return events . get ( events . size ( ) - 1 ) . timestamp ( ) - originalStart ; } }
Return the overall latency for a group of requests including all retries .