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 classTimedAnalyticsImpl.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.Tickerstart(String eventName)Start a ticker that will send an analytic event at its completion.com.atlassian.util.profiling.TickerstartAt(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:TimedAnalyticsStart a ticker that will send an analytic event at its completion. The event will be sent after the Analytics plugin is ready.- Specified by:
startin 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:TimedAnalyticsStart a ticker that will send an analytic event at its completion. The event will be sent after the Analytics plugin is ready.- Specified by:
startAtin 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
-
-