public class SpacePermissionCachePrimer extends Object
Constructor and Description |
---|
SpacePermissionCachePrimer(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
com.atlassian.confluence.impl.security.SpacePermissionCachePrimer.Primeable spacePermissionManager,
ScheduledExecutorService scheduledExecutorService,
TenantRegistry tenantRegistry,
SpaceManager spaceManager,
DarkFeaturesManager darkFeaturesManager) |
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 SpacePermissionCachePrimer(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.confluence.impl.security.SpacePermissionCachePrimer.Primeable spacePermissionManager, ScheduledExecutorService scheduledExecutorService, TenantRegistry tenantRegistry, SpaceManager spaceManager, DarkFeaturesManager darkFeaturesManager)
@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–2020 Atlassian. All rights reserved.