Package fr.gouv.vitam.common.metrics
Class ResponseLengthCountingOutputStreamMetrics
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.commons.io.output.ProxyOutputStream
-
- org.apache.commons.io.output.CountingOutputStream
-
- fr.gouv.vitam.common.metrics.ResponseLengthCountingOutputStreamMetrics
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class ResponseLengthCountingOutputStreamMetrics extends org.apache.commons.io.output.CountingOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description static io.prometheus.client.Summary
SENT_BYTES
-
Constructor Summary
Constructors Constructor Description ResponseLengthCountingOutputStreamMetrics(javax.ws.rs.container.ContainerRequestContext requestContext, java.io.OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class org.apache.commons.io.output.CountingOutputStream
beforeWrite, getByteCount, getCount, resetByteCount, resetCount
-
-