Class MailboxCleanupService
java.lang.Object
com.atlassian.jira.service.services.mail.MailboxCleanupService
- All Implemented Interfaces:
Startable,com.atlassian.scheduler.JobRunner
public class MailboxCleanupService
extends Object
implements com.atlassian.scheduler.JobRunner, Startable
Periodically scans mailboxes and processes unhandled messages as seen/delete.
Schedules a retry when locks prevent processing.
-
Constructor Summary
ConstructorsConstructorDescriptionMailboxCleanupService(com.atlassian.scheduler.SchedulerService schedulerService, ServiceManager serviceManager, MailReaderFactory mailReaderFactory, com.atlassian.beehive.ClusterLockService clusterLockService, FeatureManager featureManager, MailLoggingManager mailLoggingManager, MailboxCleanupPause mailboxCleanupPause) -
Method Summary
-
Constructor Details
-
MailboxCleanupService
public MailboxCleanupService(com.atlassian.scheduler.SchedulerService schedulerService, ServiceManager serviceManager, MailReaderFactory mailReaderFactory, com.atlassian.beehive.ClusterLockService clusterLockService, FeatureManager featureManager, MailLoggingManager mailLoggingManager, MailboxCleanupPause mailboxCleanupPause)
-
-
Method Details
-
start
public void start()Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework. -
runJob
public com.atlassian.scheduler.JobRunnerResponse runJob(@Nonnull com.atlassian.scheduler.JobRunnerRequest request) - Specified by:
runJobin interfacecom.atlassian.scheduler.JobRunner
-