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

        out
    • 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
      • Methods inherited from class org.apache.commons.io.output.ProxyOutputStream

        afterWrite, flush, handleIOException, write, write, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • SENT_BYTES

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

      • ResponseLengthCountingOutputStreamMetrics

        public ResponseLengthCountingOutputStreamMetrics​(javax.ws.rs.container.ContainerRequestContext requestContext,
                                                         java.io.OutputStream outputStream)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class org.apache.commons.io.output.ProxyOutputStream
        Throws:
        java.io.IOException