public class ConfluenceStartAnalyticsEventPublisher extends Object
ConfluenceStartAnalyticsEvent
when the application starts up.Constructor and Description |
---|
ConfluenceStartAnalyticsEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher,
TenantRegistry tenantRegistry,
ConfluenceStartAnalyticsEventFactory confluenceStartEventFactory,
ScheduledExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
Use
ApplicationStartedEvent as the trigger for sending our own event. |
void |
registerForEvents() |
void |
unregisterForEvents() |
public ConfluenceStartAnalyticsEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher, TenantRegistry tenantRegistry, ConfluenceStartAnalyticsEventFactory confluenceStartEventFactory, ScheduledExecutorService executor)
@PostConstruct public void registerForEvents()
@PreDestroy public void unregisterForEvents()
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
ApplicationStartedEvent
as the trigger for sending our own event. Other possibilities could be
listening to some sort of tenancy event, but TenantArrivedEvent
is
generally published too early for this object to react to it.Copyright © 2003–2017 Atlassian. All rights reserved.