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 Summary
Constructors Constructor Description QuickReloadCaches(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheFactory cacheFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
boolean
hasAccessModeUpdate(long since)
boolean
hasUpdates(long contentId, long since)
void
onAccessModeChanged(ClusterAccessModeEvent event)
void
onBannerChanged(ClusterEventWrapper eventWrapper)
void
onBannerChanged(ClusterMaintenanceBannerEvent event)
void
onComment(CommentEvent evt)
void
onPageUpdate(PageUpdateEvent evt)
void
updateLastUpdate(long contentId, long timestamp)
-
-
-
Method Detail
-
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 interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
-