(HttpStatus status)
| 115 | private long duration; |
| 116 | |
| 117 | public long add(HttpStatus status) { |
| 118 | AtomicLong value = this.counts.getOrDefault(status, new AtomicLong()); |
| 119 | this.counts.putIfAbsent(status, value); |
| 120 | return value.incrementAndGet(); |
| 121 | } |
| 122 | |
| 123 | public void stop() { |
| 124 | this.duration = System.currentTimeMillis() - this.timestamp; |