Closeable
, AutoCloseable
, Releasable
, MetricAware
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 | Description |
---|---|
MetricFilterInputStream(ThroughputMetricType type,
InputStream in) |
Modifier and Type | Method | 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) |
read
readAllBytes, readNBytes, transferTo
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
available, mark, markSupported, read, release, reset, skip
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 AutoCloseable
close
in interface Closeable
close
in class SdkFilterInputStream
IOException
public final boolean isMetricActivated()
MetricAware
isMetricActivated
in interface MetricAware
isMetricActivated
in class SdkFilterInputStream
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.