public class InMemoryRichGaugeRepository extends InMemoryMetricRepository<RichGauge> implements RichGaugeRepository
| Constructor and Description |
|---|
InMemoryRichGaugeRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected RichGauge |
create(java.lang.String name) |
protected RichGauge |
getOrCreate(java.lang.String name) |
void |
reset(java.lang.String name)
Reset the gauge to zero and reset any accumulated average, max and min values
|
void |
setValue(java.lang.String name,
double value,
double alpha)
Sets the current value of the gauge.
|
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, savepublic void setValue(java.lang.String name,
double value,
double alpha)
RichGaugeRepositorysetValue in interface RichGaugeRepositoryname - the gauge namevalue - the value of the gaugepublic void reset(java.lang.String name)
RichGaugeRepositoryreset in interface RichGaugeRepositoryname - the gauge nameprotected RichGauge getOrCreate(java.lang.String name)
getOrCreate in class InMemoryMetricRepository<RichGauge>protected RichGauge create(java.lang.String name)
create in class InMemoryMetricRepository<RichGauge>