public InputStreamWrapper(InputStream in) {
this.in = new DataInputStream(in);
}
public int read() throws IOException {
MetricsRecorder recorder = ThreadLocalMetricsRecorder.getInstance();
int b = in.read();
if (recorder.getResponseTransportCounter().addAndGet(1L) == 1) {
recorder.getResponseTimer().start();
}
return b;
}