Package jetbrains.buildServer.metrics
Class ServerLoadMetricsAwareInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- jetbrains.buildServer.metrics.ServerLoadMetricsAwareInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ServerLoadMetricsAwareInputStream extends FilterInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ServerLoadMetricsAwareInputStream(InputStream in, Counter metric)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
ServerLoadMetricsAwareInputStream
public ServerLoadMetricsAwareInputStream(@NotNull InputStream in, @NotNull Counter metric)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
-