@ThreadSafe public class DefaultMarshallerMetricsAccumulator extends Object implements MarshallerMetricsAccumulator
MarshallerMetricsAccumulator
. Seperately tracks metrics on a per-key basis.
This class doesn't much care what the keys used are, as long as they have well-behaved equals and hashCode methods.
Constructor and Description |
---|
DefaultMarshallerMetricsAccumulator() |
Modifier and Type | Method and Description |
---|---|
List<MarshallerMetrics> |
getMetricsSnapshots(com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter)
Obtain snapshots of all metrics recorded against keys of the given type so far
|
MarshallerMetricsCollector |
newMetricsCollector(MarshallerMetricsAccumulationKey accumulationKey)
Obtain a collector for recording metrics
|
@Nonnull public MarshallerMetricsCollector newMetricsCollector(MarshallerMetricsAccumulationKey accumulationKey)
MarshallerMetricsAccumulator
newMetricsCollector
in interface MarshallerMetricsAccumulator
accumulationKey
- The key against which these metrics will be accumulated. This key is client-specific, and
*must* implement equals and hashCode properly.@Nonnull public List<MarshallerMetrics> getMetricsSnapshots(com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter)
MarshallerMetricsAccumulator
getMetricsSnapshots
in interface MarshallerMetricsAccumulator
accumulationKeyFilter
- The filter which determines which accumulation keys we're interested inCopyright © 2003–2016 Atlassian. All rights reserved.