Class JiraAutomationQueueExecutor
java.lang.Object
com.codebarrel.jira.plugin.automation.queue.JiraAutomationQueueExecutor
- All Implemented Interfaces:
ClusterMessageConsumer,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
@Component
public class JiraAutomationQueueExecutor
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ClusterMessageConsumer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJiraAutomationQueueExecutor(AutomationConfigService automationConfigService, AutomationQueue automationQueue, AutomationEventEnricherService automationEventEnricherService, SingleRuleExecutorService singleRuleExecutorService, AuditEventService auditEventService, AutomationQueueLimits queueLimits, com.atlassian.event.api.EventPublisher eventPublisher, ClusterMessagingService clusterMessagingService, IndexLifecycleManager indexLifecycleManager, TaskTimer taskTimer, ThreadLocalExecutor threadLocalExecutor, EventRulesCache eventRulesCache, DelayedExecutionCheck delayedExecutionCheck, RuleTracker ruleTracker, ThirdPartyEventRuleCache thirdPartyEventRuleCache) -
Method Summary
-
Field Details
-
CLAIMER_THREAD
- See Also:
-
EXECUTOR
- See Also:
-
CLAIMER
- See Also:
-
-
Constructor Details
-
JiraAutomationQueueExecutor
@Inject public JiraAutomationQueueExecutor(AutomationConfigService automationConfigService, AutomationQueue automationQueue, AutomationEventEnricherService automationEventEnricherService, SingleRuleExecutorService singleRuleExecutorService, AuditEventService auditEventService, AutomationQueueLimits queueLimits, com.atlassian.event.api.EventPublisher eventPublisher, ClusterMessagingService clusterMessagingService, IndexLifecycleManager indexLifecycleManager, TaskTimer taskTimer, ThreadLocalExecutor threadLocalExecutor, EventRulesCache eventRulesCache, DelayedExecutionCheck delayedExecutionCheck, RuleTracker ruleTracker, ThirdPartyEventRuleCache thirdPartyEventRuleCache)
-
-
Method Details
-
signalToTryAndClaim
public void signalToTryAndClaim() -
init
public void init() -
shutdown
public void shutdown() -
getExecutorPoolName
-
handleTenantPropertyUpdated
-
handleTenantPropertyRemoved
-
receive
Description copied from interface:ClusterMessageConsumerCalled by the ClusterMessagingService when there is a message waiting to be processed by a node.- Specified by:
receivein interfaceClusterMessageConsumer- Parameters:
channel- The channel the message was sent tomessage- The content of the messagesenderId- The id of the node that raised the message
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-