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) |
MetricInputStreamEntity(ThroughputMetricType metricType,
InputStream instream,
long length,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeTo(OutputStream outstream) |
getContent, getContentLength, isRepeatable, isStreamingpublic MetricInputStreamEntity(ThroughputMetricType metricType, InputStream instream, long length)
public MetricInputStreamEntity(ThroughputMetricType metricType, InputStream instream, long length, org.apache.http.entity.ContentType contentType)
public void writeTo(OutputStream outstream) throws IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class org.apache.http.entity.InputStreamEntityIOException