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
ConstructorDescriptionQuickReloadCaches
(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheFactory cacheFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
boolean
hasAccessModeUpdate
(long since) boolean
hasUpdates
(long contentId, long since) void
void
onBannerChanged
(ClusterEventWrapper eventWrapper) void
void
onComment
(CommentEvent evt) void
void
updateLastUpdate
(long contentId, long timestamp)
-
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
-
onBannerChanged
-
onBannerChanged
-
onPageUpdate
-
onComment
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-