@ParametersAreNonnullByDefault public class DeferredAnalyticsEventServiceImpl extends Object implements DeferredAnalyticsEventService
LifecyclePhase.PLUGINS_STARTUP_FINISHED
Constructor and Description |
---|
DeferredAnalyticsEventServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
onAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event)
Publish the stored events and then set a flag to indicate that no more events should be stored.
|
void |
publish(Object event)
Publish the event to the EventPublisher after the analytics-client plugin has started
|
public DeferredAnalyticsEventServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher)
public void publish(Object event)
DeferredAnalyticsEventService
This should only be used for events which need to be seen by plugins, as events may be stored and not sent immediately.
This component handles subclasses of AbstractHeliumAnalyticsEvent
specially:
they have data only available after startup added to them.
publish
in interface DeferredAnalyticsEventService
event
- the event to publish@EventListener public void onAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event)
This method needs to be public in order to be called by the event system
Copyright © 2002-2020 Atlassian. All Rights Reserved.