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, mark, markSupported, read, release, reset, skip
read
public MetricFilterInputStream(ThroughputMetricType type, InputStream in)
public int read(byte[] b, int off, int len) throws IOException
read
in class SdkFilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class SdkFilterInputStream
IOException
public final boolean isMetricActivated()
MetricAware
isMetricActivated
in interface MetricAware
isMetricActivated
in class SdkFilterInputStream
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.