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:
Closeable
,Flushable
,AutoCloseable
public class ResponseLengthCountingOutputStreamMetrics
extends org.apache.commons.io.output.CountingOutputStream
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionResponseLengthCountingOutputStreamMetrics
(javax.ws.rs.container.ContainerRequestContext requestContext, OutputStream outputStream) -
Method Summary
Methods inherited from class org.apache.commons.io.output.CountingOutputStream
beforeWrite, getByteCount, getCount, resetByteCount, resetCount
Methods inherited from class org.apache.commons.io.output.ProxyOutputStream
afterWrite, flush, handleIOException, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
SENT_BYTES
public static final io.prometheus.client.Summary SENT_BYTES
-
-
Constructor Details
-
ResponseLengthCountingOutputStreamMetrics
public ResponseLengthCountingOutputStreamMetrics(javax.ws.rs.container.ContainerRequestContext requestContext, OutputStream outputStream)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.commons.io.output.ProxyOutputStream
- Throws:
IOException
-