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:
Closeable, AutoCloseable

public class RequestLengthCountingInputStreamMetrics extends org.apache.commons.io.input.CountingInputStream
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.commons.io.input.ProxyInputStream

    org.apache.commons.io.input.ProxyInputStream.AbstractBuilder<T,B extends org.apache.commons.io.build.AbstractStreamBuilder<T,B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.prometheus.client.Summary
     

    Fields inherited from class java.io.FilterInputStream

    in
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestLengthCountingInputStreamMetrics(jakarta.ws.rs.container.ContainerRequestContext requestContext, InputStream inputStream)
     
  • Method Summary

    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, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RECEIVED_BYTES

      public static final io.prometheus.client.Summary RECEIVED_BYTES
  • Constructor Details

    • RequestLengthCountingInputStreamMetrics

      public RequestLengthCountingInputStreamMetrics(jakarta.ws.rs.container.ContainerRequestContext requestContext, InputStream inputStream)
  • Method Details

    • afterRead

      protected void afterRead(int n) throws IOException
      Overrides:
      afterRead in class org.apache.commons.io.input.CountingInputStream
      Throws:
      IOException