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 void
close()
int
read()
int
read(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:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
-