Interface MarshallerMetricsAccumulator
-
- All Known Implementing Classes:
DefaultMarshallerMetricsAccumulator
public interface MarshallerMetricsAccumulator
Provides operations to allow the accumulation of marshaller execution metrics.- Since:
- 5.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull Collection<MarshallerMetrics>
getMetricsSnapshots(com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter)
Obtain snapshots of all metrics recorded against keys of the given type so far@NonNull MarshallerMetricsCollector
newMetricsCollector(MarshallerMetricsAccumulationKey accumulationKey)
Obtain a collector for recording metrics
-
-
-
Method Detail
-
newMetricsCollector
@NonNull MarshallerMetricsCollector newMetricsCollector(MarshallerMetricsAccumulationKey accumulationKey)
Obtain a collector for recording metrics- Parameters:
accumulationKey
- The key against which these metrics will be accumulated. This key is client-specific, and *must* implement equals and hashCode properly.- Returns:
- A collector against which metrics can be recorded for the given key
-
getMetricsSnapshots
@NonNull Collection<MarshallerMetrics> getMetricsSnapshots(com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter)
Obtain snapshots of all metrics recorded against keys of the given type so far- Parameters:
accumulationKeyFilter
- The filter which determines which accumulation keys we're interested in- Returns:
- An immutable collection of immutable metrics snapshots
-
-