public class MetricsInputStream extends DelegateInputStream
AWSRequestMetrics
under metric type
HttpSocketReadTime;Modifier and Type | Field and Description |
---|---|
private AWSRequestMetrics |
metrics |
in
Constructor and Description |
---|
MetricsInputStream(java.io.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, skip
private AWSRequestMetrics metrics
public void setMetrics(AWSRequestMetrics metrics)
public int read() throws java.io.IOException
read
in class DelegateInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class DelegateInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class DelegateInputStream
java.io.IOException