public class MetricsInputStream extends DelegateInputStream
AWSRequestMetrics under metric type
HttpSocketReadTime;| Constructor and Description |
|---|
MetricsInputStream(InputStream in) |
| Modifier and Type | Method and 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, skippublic 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 DelegateInputStreamIOException