Class AutomationQueueCacheServiceImpl
java.lang.Object
com.codebarrel.jira.plugin.automation.service.cache.AutomationQueueCacheServiceImpl
- All Implemented Interfaces:
AutomationQueueCacheService
@Component
public class AutomationQueueCacheServiceImpl
extends Object
implements AutomationQueueCacheService
-
Constructor Summary
ConstructorsConstructorDescriptionAutomationQueueCacheServiceImpl(com.atlassian.cache.CacheManager cacheFactory, AutomationQueue automationQueue) -
Method Summary
Modifier and TypeMethodDescriptiongetCount()Retrieves the age of the earliest unprocessed item from the automationQueue cacheRetrieves the created time of the earliest unprocessed item from the automationQueue cache.voidvoidUpdates the automationQueue cache with the created time and age of the earliest unprocessed item in the automation queue.
-
Constructor Details
-
AutomationQueueCacheServiceImpl
@Inject public AutomationQueueCacheServiceImpl(com.atlassian.cache.CacheManager cacheFactory, AutomationQueue automationQueue)
-
-
Method Details
-
updateCount
public void updateCount()- Specified by:
updateCountin interfaceAutomationQueueCacheService
-
getAutomationQueueCountCache
- Specified by:
getAutomationQueueCountCachein interfaceAutomationQueueCacheService
-
getCount
- Specified by:
getCountin interfaceAutomationQueueCacheService
-
updateEarliestUnprocessedItem
public void updateEarliestUnprocessedItem()Description copied from interface:AutomationQueueCacheServiceUpdates 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).- Specified by:
updateEarliestUnprocessedItemin interfaceAutomationQueueCacheService
-
getEarliestUnprocessedItemCreatedTime
Description copied from interface:AutomationQueueCacheServiceRetrieves the created time of the earliest unprocessed item from the automationQueue cache.- Specified by:
getEarliestUnprocessedItemCreatedTimein interfaceAutomationQueueCacheService- Returns:
- the created time of the earliest unprocessed item in milliseconds since epoch.
-
getEarliestUnprocessedItemAge
Description copied from interface:AutomationQueueCacheServiceRetrieves the age of the earliest unprocessed item from the automationQueue cache- Specified by:
getEarliestUnprocessedItemAgein interfaceAutomationQueueCacheService- Returns:
- the age of the earliest unprocessed item in seconds.
-