Interface Counter
- All Superinterfaces:
Meter
- All Known Implementing Classes:
DropwizardTypes.DescribableCounter
Used to measure the rate of change based on calls to increment.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.forgerock.monitoring.api.instrument.Meter
Meter.Id, Meter.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic Counter.BuilderReturn the Builder object for this Counter.doublecount()The cumulative count since this counter was created.default voidUpdate the counter by one.voidincrement(double amount) Update the counter byamount.default Iterable<Measurement>measure()Get a set of measurements.
-
Method Details
-
builder
Return the Builder object for this Counter.- Parameters:
name- of the Counter- Returns:
- the Builder for a Counter
-
increment
default void increment()Update the counter by one. -
increment
void increment(double amount) Update the counter byamount.- Parameters:
amount- Amount to add to the counter.
-
count
double count()The cumulative count since this counter was created.- Returns:
- double representing the current count of the Counter
-
measure
Description copied from interface:MeterGet a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.
-