@Public
@Evolving
public class MetricsCache
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MetricsCache.Record |
Cached record
|
| Constructor | Description |
|---|---|
MetricsCache() |
|
MetricsCache(int maxRecsPerName) |
Construct a metrics cache
|
| Modifier and Type | Method | Description |
|---|---|---|
MetricsCache.Record |
get(java.lang.String name,
java.util.Collection<MetricsTag> tags) |
Get the cached record
|
MetricsCache.Record |
update(MetricsRecord mr) |
Update the cache and return the current cache record
|
MetricsCache.Record |
update(MetricsRecord mr,
boolean includingTags) |
Update the cache and return the current cached record
|
public MetricsCache()
public MetricsCache(int maxRecsPerName)
maxRecsPerName - limit of the number records per record namepublic MetricsCache.Record update(MetricsRecord mr, boolean includingTags)
mr - the update recordincludingTags - cache tag values (for later lookup by name) if truepublic MetricsCache.Record update(MetricsRecord mr)
mr - the update recordpublic MetricsCache.Record get(java.lang.String name, java.util.Collection<MetricsTag> tags)
name - of the recordtags - of the recordCopyright © 2008–2025 Apache Software Foundation. All rights reserved.