Class SynchronyStatusCache

  • All Implemented Interfaces:
    SynchronyStatusService

    @Component
    public class SynchronyStatusCache
    extends Object
    implements SynchronyStatusService
    Service that caches the result of the SynchronyStatusCheckJob to check if Synchrony is running or not.
    Since:
    6.0
    • Constructor Detail

      • SynchronyStatusCache

        @Autowired
        public SynchronyStatusCache​(com.atlassian.cache.CacheManager cacheManager)
    • Method Detail

      • getStatus

        public Optional<Boolean> 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