A C D G H I M N O S T U
All Classes All Packages

## A

adaptTo(Class<A>) - Method in interface org.apache.sling.commons.metrics.Metric
  Adapts the Metric to the specified type.
adaptTo(Class<A>) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Adapts the service to the specified type.

## C

counter(String) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Creates a new `Counter` and registers it under the given name.
Counter - Interface in org.apache.sling.commons.metrics
  An incrementing and decrementing counter metric.
Counting - Interface in org.apache.sling.commons.metrics

## D

decrement() - Method in interface org.apache.sling.commons.metrics.Counter
  Decrement the counter by one.
decrement(long) - Method in interface org.apache.sling.commons.metrics.Counter
  Decrement the counter by `n`.

## G

gauge(String, Supplier<T>) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Creates a new `Gauge` and registers it under the given name.
Gauge<T> - Interface in org.apache.sling.commons.metrics
  A gauge metric is an instantaneous reading of a particular value.
getCount() - Method in interface org.apache.sling.commons.metrics.Counting
  Returns the current count.
getMetricsService(Class<?>) - Static method in class org.apache.sling.commons.metrics.MetricsServiceFactory
  Provide a MetricsService mapped to the Bundle that loaded class c
getValue() - Method in interface org.apache.sling.commons.metrics.Gauge
  Returns the metric's current value.

## H

histogram(String) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Creates a new `Histogram` and registers it under the given name.
Histogram - Interface in org.apache.sling.commons.metrics
  A metric which calculates the distribution of a value.

## I

increment() - Method in interface org.apache.sling.commons.metrics.Counter
  Increment the counter by one.
increment(long) - Method in interface org.apache.sling.commons.metrics.Counter
  Increment the counter by `n`.

## M

mark() - Method in interface org.apache.sling.commons.metrics.Meter
  Mark the occurrence of an event.
mark(long) - Method in interface org.apache.sling.commons.metrics.Meter
  Mark the occurrence of a given number of events.
meter(String) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Creates a new `Meter` and registers it under the given name.
Meter - Interface in org.apache.sling.commons.metrics
  A meter metric which measures mean throughput
Metric - Interface in org.apache.sling.commons.metrics
MetricsService - Interface in org.apache.sling.commons.metrics
  The `MetricsService` enables creation of various types of `Metric`.
MetricsServiceFactory - Class in org.apache.sling.commons.metrics
  Utility that provides a MetricsService to any class that has been loaded from an OSGi bundle.
MetricsServiceFactory() - Constructor for class org.apache.sling.commons.metrics.MetricsServiceFactory

## N

NAME - Static variable in interface org.apache.sling.commons.metrics.Gauge
  Service property name which determines the name of the Gauge
NOOP - Static variable in interface org.apache.sling.commons.metrics.MetricsService
  Dummy variant of MetricsService which does not collect any metric

## O

org.apache.sling.commons.metrics - package org.apache.sling.commons.metrics
  Provides an API to generate and collect metrics in various forms

## S

stop() - Method in interface org.apache.sling.commons.metrics.Timer.Context
  Updates the timer with the difference between current and start time.

## T

time() - Method in interface org.apache.sling.commons.metrics.Timer
  Returns a new `Timer.Context`.
timer(String) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Creates a new `Timer` and registers it under the given name.
Timer - Interface in org.apache.sling.commons.metrics
  A timer metric which aggregates timing durations and provides duration statistics.
Timer.Context - Interface in org.apache.sling.commons.metrics
  A timing context.

## U

unregister(String) - Method in interface org.apache.sling.commons.metrics.MetricsService
  Unregister a metric by its name
update(long) - Method in interface org.apache.sling.commons.metrics.Histogram
  Adds a recorded value.
update(long, TimeUnit) - Method in interface org.apache.sling.commons.metrics.Timer
  Adds a recorded duration.

A C D G H I M N O S T U
All Classes All Packages