@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public int read(byte b[], int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public int read(byte b[], int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public int read(byte[] b, int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public int read(byte[] b, int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public int read(byte[] b, int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public int read(byte b[], int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }