public class PersistentDecoratorCachePrimer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PersistentDecoratorCachePrimer.Primeable |
Constructor and Description |
---|
PersistentDecoratorCachePrimer(PersistentDecoratorCachePrimer.Primeable persistentDecoratorDao,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
ScheduledExecutorService scheduledExecutorService,
TenantRegistry tenantRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
Use
ApplicationStartedEvent as the trigger for priming cache. |
void |
registerForEvents() |
void |
unregisterForEvents() |
public PersistentDecoratorCachePrimer(PersistentDecoratorCachePrimer.Primeable persistentDecoratorDao, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, ScheduledExecutorService scheduledExecutorService, TenantRegistry tenantRegistry)
@PostConstruct public void registerForEvents()
@PreDestroy public void unregisterForEvents()
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
ApplicationStartedEvent
as the trigger for priming cache. 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–2016 Atlassian. All rights reserved.