Class MarshallerMetricsAccumulatorStack
java.lang.Object
com.atlassian.confluence.impl.content.render.xhtml.analytics.MarshallerMetricsAccumulatorStack
A utility class which maintains a "stack" of MarshallerMetricsAccumulators. This allows the rendering pipeline to
isolate the gathering of metrics to a delegated process without corrupting what came before.
It is up to client code to manage the stack my calling the push and pop methods appropriately.
- Since:
- 5.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
forEachMetricsSnapshot
(ConversionContext context, com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter, com.atlassian.fugue.Effect<MarshallerMetrics> effect) static com.atlassian.fugue.Maybe<MarshallerMetricsAccumulator>
static void
pop
(@Nullable ConversionContext context) static void
pushNewMetricsAccumulator
(@Nullable ConversionContext context)
-
Constructor Details
-
MarshallerMetricsAccumulatorStack
public MarshallerMetricsAccumulatorStack()
-
-
Method Details
-
forEachMetricsSnapshot
public static void forEachMetricsSnapshot(ConversionContext context, com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter, com.atlassian.fugue.Effect<MarshallerMetrics> effect) -
getCurrentMetricsAccumulator
public static com.atlassian.fugue.Maybe<MarshallerMetricsAccumulator> getCurrentMetricsAccumulator(ConversionContext context) -
pushNewMetricsAccumulator
-
pop
-