private void addReplyTime ( String type , long replyTime ) { DescriptiveStatistics samples = replySamples . get ( type ) ; if ( samples == null ) { samples = replySamples . computeIfAbsent ( type , t -> new SynchronizedDescriptiveStatistics ( WINDOW_SIZE ) ) ; } samples . addValue ( replyTime ) ; }
Adds a reply time to the history .