public class MetricFilterInputStream
extends com.amazonaws.internal.SdkFilterInputStream
FilterInputStream.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) |
available, mark, markSupported, read, read, reset, skippublic MetricFilterInputStream(ThroughputMetricType type, InputStream in)
public int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic final boolean isMetricActivated()
com.amazonaws.internal.MetricAwareisMetricActivated in interface com.amazonaws.internal.MetricAwareisMetricActivated in class com.amazonaws.internal.SdkFilterInputStreamCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.