Class Stats

java.lang.Object
org.attribyte.api.http.Timing
org.attribyte.api.http.Stats

public class Stats extends Timing
Extended request/response statistics including header and body size metrics.
  • Field Details

    • requestHeaderCount

      public final int requestHeaderCount
      The number of request headers.
    • requestHeaderSize

      public final long requestHeaderSize
      The size (in bytes) of the request headers.
    • requestChunkCount

      public final int requestChunkCount
      The number of chunks in the request body.
    • requestBodySize

      public final long requestBodySize
      The size of the request body.
    • responseHeaderCount

      public final int responseHeaderCount
      The number of response headers.
    • responseHeaderSize

      public final long responseHeaderSize
      The size of the response headers.
    • responseChunkCount

      public final AtomicInteger responseChunkCount
      The number of chunks in the response.
    • responseBodySize

      public final AtomicLong responseBodySize
      The size of the response body.
  • Constructor Details

    • Stats

      public Stats(long timeToRequestStart, long timeToRequestComplete, long timeToResponseStatus, long timeToFirstResponseHeader, long timeToLastResponseHeader, long timeToFirstResponseContent, long timeToCompleteResponse, int requestHeaderCount, long requestHeaderSize, int requestChunkCount, long requestBodySize, int responseHeaderCount, long responseHeaderSize, AtomicInteger responseChunkCount, AtomicLong responseBodySize)
      Creates stats with all timing and size metrics.
      Parameters:
      timeToRequestStart - Time to start the request (nanoseconds).
      timeToRequestComplete - Time to complete sending the request (nanoseconds).
      timeToResponseStatus - Time to receive the response status (nanoseconds).
      timeToFirstResponseHeader - Time to receive the first response header (nanoseconds).
      timeToLastResponseHeader - Time to receive the last response header (nanoseconds).
      timeToFirstResponseContent - Time to receive the first response content (nanoseconds).
      timeToCompleteResponse - Time to complete the response (nanoseconds).
      requestHeaderCount - The number of request headers.
      requestHeaderSize - The size of request headers in bytes.
      requestChunkCount - The number of request body chunks.
      requestBodySize - The size of the request body in bytes.
      responseHeaderCount - The number of response headers.
      responseHeaderSize - The size of response headers in bytes.
      responseChunkCount - The number of response body chunks.
      responseBodySize - The size of the response body in bytes.
  • Method Details