Class MarshallerMetricsAccumulatorStack
- java.lang.Object
-
- com.atlassian.confluence.impl.content.render.xhtml.analytics.MarshallerMetricsAccumulatorStack
-
public class MarshallerMetricsAccumulatorStack extends Object
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 Constructor Description MarshallerMetricsAccumulatorStack()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
forEachMetricsSnapshot(ConversionContext context, com.google.common.base.Predicate<? super MarshallerMetricsAccumulationKey> accumulationKeyFilter, com.atlassian.fugue.Effect<MarshallerMetrics> effect)
static com.atlassian.fugue.Maybe<MarshallerMetricsAccumulator>
getCurrentMetricsAccumulator(ConversionContext context)
static void
pop(@Nullable ConversionContext context)
static void
pushNewMetricsAccumulator(@Nullable ConversionContext context)
-
-
-
Method Detail
-
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
public static void pushNewMetricsAccumulator(@Nullable ConversionContext context)
-
pop
public static void pop(@Nullable ConversionContext context)
-
-