public class MetricFilterInputStream extends SdkFilterInputStream
SdkFilterInputStream.read() API.
Note this class is only relevant when metric is enabled. Otherwise it should not even be involved in the call stack to minimize runtime overhead.
| Constructor and Description |
|---|
MetricFilterInputStream(ThroughputMetricType type,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isMetricActivated()
Returns true if this object or one of it's inner wrapped objects has
metrics gathering activity turned on; false otherwise.
|
int |
read(byte[] b,
int off,
int len) |
abort, available, getDelegateStream, mark, markSupported, read, release, reset, skipreadpublic MetricFilterInputStream(ThroughputMetricType type, InputStream in)
public int read(byte[] b,
int off,
int len)
throws IOException
read in class SdkFilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SdkFilterInputStreamIOExceptionpublic final boolean isMetricActivated()
MetricAwareisMetricActivated in interface MetricAwareisMetricActivated in class SdkFilterInputStream