Class QuickReloadCaches

java.lang.Object
com.atlassian.confluence.plugins.quickreload.QuickReloadCaches
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

@ParametersAreNonnullByDefault @Component public class QuickReloadCaches extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Manage cached last updated timestamp built by listening to page update event and comment events as well as update from last built result for REST calls
  • Constructor Details

    • QuickReloadCaches

      @Autowired public QuickReloadCaches(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheFactory cacheFactory)
  • Method Details

    • hasUpdates

      public boolean hasUpdates(long contentId, long since)
    • hasAccessModeUpdate

      public boolean hasAccessModeUpdate(long since)
    • updateLastUpdate

      public void updateLastUpdate(long contentId, long timestamp)
    • onAccessModeChanged

      @EventListener public void onAccessModeChanged(ClusterAccessModeEvent event)
    • onBannerChanged

      @EventListener public void onBannerChanged(ClusterMaintenanceBannerEvent event)
    • onBannerChanged

      @EventListener public void onBannerChanged(ClusterEventWrapper eventWrapper)
    • onPageUpdate

      @EventListener public void onPageUpdate(PageUpdateEvent evt)
    • onComment

      @EventListener public void onComment(CommentEvent evt)
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception