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,
java.io.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, abortIfNeeded, available, mark, markSupported, read, reset, skippublic MetricFilterInputStream(ThroughputMetricType type, java.io.InputStream in)
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class SdkFilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SdkFilterInputStreamjava.io.IOExceptionpublic final boolean isMetricActivated()
MetricAwareisMetricActivated in interface MetricAwareisMetricActivated in class SdkFilterInputStream