Class SpacePermissionCachePrimer
- java.lang.Object
-
- com.atlassian.confluence.impl.security.SpacePermissionCachePrimer
-
public class SpacePermissionCachePrimer extends Object
This class will prime space permission cache for all spaces that not archived or personal.- Since:
- 5.9
-
-
Constructor Summary
Constructors Constructor Description SpacePermissionCachePrimer(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.confluence.impl.security.SpacePermissionCachePrimer.Primeable spacePermissionManager, ScheduledExecutorService scheduledExecutorService, TenantRegistry tenantRegistry, SpaceManager spaceManager, DarkFeaturesManager darkFeaturesManager)
-
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 priming cache.void
registerForEvents()
void
unregisterForEvents()
-
-
-
Constructor Detail
-
SpacePermissionCachePrimer
public SpacePermissionCachePrimer(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.confluence.impl.security.SpacePermissionCachePrimer.Primeable spacePermissionManager, ScheduledExecutorService scheduledExecutorService, TenantRegistry tenantRegistry, SpaceManager spaceManager, DarkFeaturesManager darkFeaturesManager)
-
-
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 priming cache. Other possibilities could be listening to some sort of tenancy event, butTenantArrivedEvent
is generally published too early for this object to react to it.
-
-