Package io.jmix.email.impl
Class EmailCleanerImpl
java.lang.Object
io.jmix.email.impl.EmailCleanerImpl
- All Implemented Interfaces:
EmailCleaner
@Component("email_EmailCleaner")
public class EmailCleanerImpl
extends Object
implements EmailCleaner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeletes old email messages and attachments.
-
Constructor Details
-
EmailCleanerImpl
public EmailCleanerImpl()
-
-
Method Details
-
deleteOldEmails
Description copied from interface:EmailCleaner
Deletes old email messages and attachments.Uses the settings of emails age (
jmix.email.maxAgeOfImportantMessages
,jmix.email.maxAgeOfNonImportantMessages
) which are configurable byapplication.properties
.- Specified by:
deleteOldEmails
in interfaceEmailCleaner
- Returns:
- count of messages and attachments, that has been deleted
-