com.atlassian.confluence.plugins.quickreload
Class QuickReloadCaches

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

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 Summary
QuickReloadCaches(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheManager cacheManager)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 boolean hasUpdates(long contentId, long since)
           
 void onComment(CommentEvent evt)
           
 void onPageUpdate(PageUpdateEvent evt)
           
 void updateLastUpdate(long contentId, long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickReloadCaches

public QuickReloadCaches(com.atlassian.event.api.EventPublisher eventPublisher,
                         com.atlassian.cache.CacheManager cacheManager)
Method Detail

hasUpdates

public boolean hasUpdates(long contentId,
                          long since)

updateLastUpdate

public void updateLastUpdate(long contentId,
                             long timestamp)

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


Copyright © 2003–2015 Atlassian. All rights reserved.