Closeable
, AutoCloseable
public class MetricsInputStream extends DelegateInputStream
AwsRequestMetrics
under metric type
HttpSocketReadTime;Constructor | Description |
---|---|
MetricsInputStream(InputStream in) |
Modifier and Type | Method | Description |
---|---|---|
int |
read() |
Record the read time into the metrics.
|
int |
read(byte[] b) |
Record the read time into the metrics.
|
int |
read(byte[] b,
int off,
int len) |
Record the read time into the metrics.
|
void |
setMetrics(AwsRequestMetrics metrics) |
available, close, mark, markSupported, reset, skip
readAllBytes, readNBytes, transferTo
public MetricsInputStream(InputStream in)
public void setMetrics(AwsRequestMetrics metrics)
public int read() throws IOException
read
in class DelegateInputStream
IOException
public int read(byte[] b) throws IOException
read
in class DelegateInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class DelegateInputStream
IOException
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.