Class ConfluenceStartAnalyticsEventPublisher
- java.lang.Object
-
- com.atlassian.confluence.impl.startup.ConfluenceStartAnalyticsEventPublisher
-
public class ConfluenceStartAnalyticsEventPublisher extends Object
Responsible for publishing aConfluenceStartAnalyticsEvent
when the application starts up.- Since:
- 5.8
-
-
Constructor Summary
Constructors Constructor Description ConfluenceStartAnalyticsEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher, TenantRegistry tenantRegistry, ConfluenceStartAnalyticsEventFactory confluenceStartEventFactory, Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
UseApplicationStartedEvent
as the trigger for sending our own event.void
registerForEvents()
void
unregisterForEvents()
-
-
-
Constructor Detail
-
ConfluenceStartAnalyticsEventPublisher
public ConfluenceStartAnalyticsEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher, TenantRegistry tenantRegistry, ConfluenceStartAnalyticsEventFactory confluenceStartEventFactory, Executor executor)
-
-
Method Detail
-
registerForEvents
@PostConstruct public void registerForEvents()
-
unregisterForEvents
@PreDestroy public void unregisterForEvents()
-
onApplicationStartedEvent
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
UseApplicationStartedEvent
as the trigger for sending our own event. Other possibilities could be listening to some sort of tenancy event, butTenantArrivedEvent
is generally published too early for this object to react to it.
-
-