Package com.amazonaws.metrics
Class MetricInputStreamEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.apache.http.entity.InputStreamEntity
com.amazonaws.metrics.MetricInputStreamEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
public class MetricInputStreamEntity
extends org.apache.http.entity.InputStreamEntity
Used to help capture the throughput metrics.
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.
-
Field Summary
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionMetricInputStreamEntity
(ThroughputMetricType metricType, InputStream instream, long length) MetricInputStreamEntity
(ThroughputMetricType metricType, InputStream instream, long length, org.apache.http.entity.ContentType contentType) -
Method Summary
Methods inherited from class org.apache.http.entity.InputStreamEntity
getContent, getContentLength, isRepeatable, isStreaming
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
-
Constructor Details
-
MetricInputStreamEntity
-
MetricInputStreamEntity
public MetricInputStreamEntity(ThroughputMetricType metricType, InputStream instream, long length, org.apache.http.entity.ContentType contentType)
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Overrides:
writeTo
in classorg.apache.http.entity.InputStreamEntity
- Throws:
IOException
-