Class SynchronyStatusCache
java.lang.Object
com.atlassian.confluence.plugins.synchrony.status.SynchronyStatusCache
- All Implemented Interfaces:
SynchronyStatusService
Service that caches the result of the SynchronyStatusCheckJob to
check if Synchrony is running or not.
- Since:
- 6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the status from the cacheboolean
void
setStatus
(boolean isRunning) Set the status in the cache.
-
Constructor Details
-
SynchronyStatusCache
@Autowired public SynchronyStatusCache(com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
isSynchronyRunning
public boolean isSynchronyRunning()- Specified by:
isSynchronyRunning
in interfaceSynchronyStatusService
- Returns:
- true if Synchrony is running
- Since:
- 6.0.4
-
getStatus
Get the status from the cache- Returns:
- true if Synchrony is last-reported up
-
setStatus
public void setStatus(boolean isRunning) Set the status in the cache.- Parameters:
isRunning
- Is Synchrony currently running
-