Interface AutomationQueueStore
- All Known Implementing Classes:
JiraAutomationQueueStore
public interface AutomationQueueStore
Store to be used by the
AutomationQueue-
Method Summary
Modifier and TypeMethodDescriptionlongaddItem(Environment env, QueueItemBean item) addItems(Environment environment, List<QueueItemBean> items) claimItem(Environment env, String claimant, ClaimLimits claimLimits) claimItems(Environment env, String claimant, ClaimLimits limits) claimItemsById(Environment env, String claimant, ClaimLimits limits) longclearUnresolved(Environment env, Date olderThan) getAutomationQueueInsightByRule(int limit) Gets automation queue events grouped by rule.longgetCount(Environment env) longgetItem(Environment env, long itemId) getItemAndMarkForProcessing(Environment env, long itemId) longgetQueuedCountForAuditItem(Environment environment, long auditItemId) getStatistics(Environment env) booleanisRuleInProgress(TenantContext context, long ruleId) longresolveItem(TenantExecution tenantExecution, long itemId) stopAllRuleExecutions(TenantContext context, long ruleId) Stops the execution of an automation rule, and returns a set of all affected audit item ids (could be empty).longstopRuleExecution(TenantExecution execution) Removes all items from the queue for this single rule execution.
-
Method Details
-
addItem
-
addItems
-
claimItems
-
claimItemsById
-
claimItem
-
resolveItem
-
clearUnresolved
-
getStatistics
-
getItem
-
getItemAndMarkForProcessing
-
getQueuedCountForAuditItem
-
stopAllRuleExecutions
Stops the execution of an automation rule, and returns a set of all affected audit item ids (could be empty).- Parameters:
context- The tenant to execute this forruleId- The id of the rule to stop- Returns:
- Set of audit item ids affected.
-
stopRuleExecution
Removes all items from the queue for this single rule execution.- Parameters:
execution- the execution to remove- Returns:
- number of queued items removed
-
isRuleInProgress
-
getCount
-
getEarliestUnprocessedItemCreatedTime
long getEarliestUnprocessedItemCreatedTime() -
getAutomationQueueInsightByRule
Gets automation queue events grouped by rule.- Parameters:
limit- the number of groups to return- Returns:
- the events grouped by rule
-