Closeable, AutoCloseablepublic 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, skipreadAllBytes, readNBytes, transferTopublic MetricsInputStream(InputStream in)
public void setMetrics(AwsRequestMetrics metrics)
public int read()
throws IOException
read in class DelegateInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class DelegateInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class DelegateInputStreamIOExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.