Class 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  
      • Fields inherited from class java.io.FilterInputStream

        in
    • 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
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

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

      • RECEIVED_BYTES

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

      • RequestLengthCountingInputStreamMetrics

        public RequestLengthCountingInputStreamMetrics​(javax.ws.rs.container.ContainerRequestContext requestContext,
                                                       java.io.InputStream inputStream)
    • Method Detail

      • afterRead

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