Class HttpConnectionMetricsImpl

    • Field Detail

      • SENT_BYTES_COUNT

        public static final java.lang.String SENT_BYTES_COUNT
        See Also:
        Constant Field Values
      • RECEIVED_BYTES_COUNT

        public static final java.lang.String RECEIVED_BYTES_COUNT
        See Also:
        Constant Field Values
      • requestCount

        private long requestCount
      • responseCount

        private long responseCount
      • metricsCache

        private java.util.Map<java.lang.String,​java.lang.Object> metricsCache
        The cache map for all metrics values.
    • Method Detail

      • incrementRequestCount

        public void incrementRequestCount()
      • incrementResponseCount

        public void incrementResponseCount()
      • getMetric

        public java.lang.Object getMetric​(java.lang.String metricName)
        Description copied from interface: HttpConnectionMetrics
        Return the value for the specified metric.
        Specified by:
        getMetric in interface HttpConnectionMetrics
        Parameters:
        metricName - the name of the metric to query.
        Returns:
        the object representing the metric requested, null if the metric cannot not found.
      • setMetric

        public void setMetric​(java.lang.String metricName,
                              java.lang.Object obj)