Interface AutomationQueueCacheService

All Known Implementing Classes:
AutomationQueueCacheServiceImpl

public interface AutomationQueueCacheService
  • Method Details

    • updateCount

      void updateCount()
    • getCount

      Long getCount()
    • getAutomationQueueCountCache

      com.atlassian.cache.Cache<String,Long> getAutomationQueueCountCache()
    • updateEarliestUnprocessedItem

      void updateEarliestUnprocessedItem()
      Updates the automationQueue cache with the created time and age of the earliest unprocessed item in the automation queue. If an error occurs during the update, the cache is updated with default values (-1).
    • getEarliestUnprocessedItemAge

      Long getEarliestUnprocessedItemAge()
      Retrieves the age of the earliest unprocessed item from the automationQueue cache
      Returns:
      the age of the earliest unprocessed item in seconds.
    • getEarliestUnprocessedItemCreatedTime

      Long getEarliestUnprocessedItemCreatedTime()
      Retrieves the created time of the earliest unprocessed item from the automationQueue cache.
      Returns:
      the created time of the earliest unprocessed item in milliseconds since epoch.