public class MetricFilterInputStream
extends com.amazonaws.internal.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.
in| Constructor and Description |
|---|
MetricFilterInputStream(ThroughputMetricType type,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isMetricActivated() |
int |
read(byte[] b,
int off,
int len) |
abort, abortIfNeeded, available, 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 com.amazonaws.internal.SdkFilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.amazonaws.internal.SdkFilterInputStreamIOExceptionpublic final boolean isMetricActivated()
isMetricActivated in interface com.amazonaws.internal.MetricAwareisMetricActivated in class com.amazonaws.internal.SdkFilterInputStreamCopyright © 2017. All rights reserved.