Class PollServiceImpl
java.lang.Object
com.codebarrel.automation.api.service.PollServiceImpl
- All Implemented Interfaces:
PollingRuleService
-
Field Summary
Fields inherited from interface com.codebarrel.automation.api.service.PollingRuleService
TENANT_PROPERTY_INTERVAL_KEY -
Constructor Summary
ConstructorsConstructorDescriptionPollServiceImpl(AutomationConfigService automationConfigService, AutomationConfigStore configStore, AuditService auditService, AutomationQueue automationQueue, TenantService tenantService, AutomationLicenseService licenseService, AuditEventService auditEventService) -
Method Summary
Modifier and TypeMethodDescriptionvoidFinds and runs all overdue schedules.getIntervalMinutes(TenantContext tenantContext) Returns the interval in which rule components should be polled.
-
Constructor Details
-
PollServiceImpl
@Inject public PollServiceImpl(AutomationConfigService automationConfigService, AutomationConfigStore configStore, AuditService auditService, AutomationQueue automationQueue, TenantService tenantService, AutomationLicenseService licenseService, AuditEventService auditEventService)
-
-
Method Details
-
getIntervalMinutes
Description copied from interface:PollingRuleServiceReturns the interval in which rule components should be polled.- Specified by:
getIntervalMinutesin interfacePollingRuleService- Returns:
- the interval in minutes
-
addPollingRulesToQueue
Description copied from interface:PollingRuleServiceFinds and runs all overdue schedules. This method should execute fast and simply queue schedules to be executed (and not actually execute them)- Specified by:
addPollingRulesToQueuein interfacePollingRuleService- Parameters:
env- The environment from which to retrieve schedules
-