public class MetricInputStreamEntity
extends org.apache.http.entity.InputStreamEntity
Note this class is only relevant when metric is enabled. Otherwise it should not even be involved in the call stack to minimize runtime overhead.
| Constructor and Description |
|---|
MetricInputStreamEntity(ThroughputMetricType metricType,
InputStream instream,
long length)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeTo(OutputStream outstream) |
consumeContent, getContent, getContentLength, isRepeatable, isStreamingpublic MetricInputStreamEntity(ThroughputMetricType metricType, InputStream instream, long length)
metricType - the throughput metric type.instream - the input stream.length - the length.public void writeTo(OutputStream outstream) throws IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class org.apache.http.entity.InputStreamEntityIOExceptionCopyright © 2018. All rights reserved.