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.
Modifier and Type | Field and Description |
---|---|
private ByteThroughputHelper |
helper |
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, release, reset, skip
private final ByteThroughputHelper helper
public MetricFilterInputStream(ThroughputMetricType type, java.io.InputStream in)
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class SdkFilterInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class SdkFilterInputStream
java.io.IOException
public final boolean isMetricActivated()
MetricAware
isMetricActivated
in interface MetricAware
isMetricActivated
in class SdkFilterInputStream