Package fr.gouv.vitam.common.metrics
Class RequestLengthCountingInputStreamMetrics
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.ProxyInputStream
-
- org.apache.commons.io.input.CountingInputStream
-
- fr.gouv.vitam.common.metrics.RequestLengthCountingInputStreamMetrics
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class RequestLengthCountingInputStreamMetrics extends org.apache.commons.io.input.CountingInputStream
-
-
Field Summary
Fields Modifier and Type Field Description static io.prometheus.client.Summary
RECEIVED_BYTES
-
Constructor Summary
Constructors Constructor Description RequestLengthCountingInputStreamMetrics(javax.ws.rs.container.ContainerRequestContext requestContext, java.io.InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterRead(int n)
-
Methods inherited from class org.apache.commons.io.input.CountingInputStream
getByteCount, getCount, resetByteCount, resetCount, skip
-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, reset
-
-