public class MetricsInputStream extends DelegateInputStream
AWSRequestMetrics
under metric type
HttpSocketReadTime;in
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, skip
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 © 2020. All rights reserved.