Class ResponseTimeAttribute

    • Field Detail

      • RESPONSE_TIME_MILLIS_SHORT

        public static final java.lang.String RESPONSE_TIME_MILLIS_SHORT
        See Also:
        Constant Field Values
      • RESPONSE_TIME_SECONDS_SHORT

        public static final java.lang.String RESPONSE_TIME_SECONDS_SHORT
        See Also:
        Constant Field Values
      • RESPONSE_TIME_MILLIS

        public static final java.lang.String RESPONSE_TIME_MILLIS
        See Also:
        Constant Field Values
      • RESPONSE_TIME_MICROS

        public static final java.lang.String RESPONSE_TIME_MICROS
        See Also:
        Constant Field Values
      • RESPONSE_TIME_NANOS

        public static final java.lang.String RESPONSE_TIME_NANOS
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResponseTimeAttribute

        public ResponseTimeAttribute​(java.util.concurrent.TimeUnit timeUnit)
    • Method Detail

      • readAttribute

        public java.lang.String readAttribute​(HttpServerExchange exchange)
        Description copied from interface: ExchangeAttribute
        Resolve the attribute from the HTTP server exchange. This may return null if the attribute is not present.
        Specified by:
        readAttribute in interface ExchangeAttribute
        Parameters:
        exchange - The exchange
        Returns:
        The attribute
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object