Class TimedAnalyticsImpl
- java.lang.Object
-
- com.atlassian.confluence.impl.profiling.TimedAnalyticsImpl
-
- All Implemented Interfaces:
TimedAnalytics
@Internal @ParametersAreNonnullByDefault public class TimedAnalyticsImpl extends Object implements TimedAnalytics
- Since:
- 7.11
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimedAnalyticsImpl.TimedAnalyticsEvent
-
Constructor Summary
Constructors Constructor Description TimedAnalyticsImpl(Consumer<TimedAnalyticsImpl.TimedAnalyticsEvent> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.util.profiling.Ticker
start(String eventName)
Start a ticker that will send an analytic event at its completion.com.atlassian.util.profiling.Ticker
startAt(String eventName, Duration at)
Start a ticker that will send an analytic event at its completion.
-
-
-
Constructor Detail
-
TimedAnalyticsImpl
public TimedAnalyticsImpl(Consumer<TimedAnalyticsImpl.TimedAnalyticsEvent> consumer)
-
-
Method Detail
-
start
public com.atlassian.util.profiling.Ticker start(String eventName)
Description copied from interface:TimedAnalytics
Start a ticker that will send an analytic event at its completion. The event will be sent after the Analytics plugin is ready.- Specified by:
start
in interfaceTimedAnalytics
- Parameters:
eventName
- name of the analytics event that will get sent at the completion of the split ticker- Returns:
- the ticker
-
startAt
public com.atlassian.util.profiling.Ticker startAt(String eventName, Duration at)
Description copied from interface:TimedAnalytics
Start a ticker that will send an analytic event at its completion. The event will be sent after the Analytics plugin is ready.- Specified by:
startAt
in interfaceTimedAnalytics
- Parameters:
eventName
- name of the analytics event that will get sent at the completion of the split tickerat
- when this operation started, relative to application start time- Returns:
- the ticker
-
-