Package com.avoka.fc.core.service
Interface IEmailQueueService
- All Known Implementing Classes:
EmailQueueServiceImpl
public interface IEmailQueueService
Provides an email queue service interface.
-
Method Summary
Modifier and TypeMethodDescriptioncloneEmailQueue
(Long emailQueueId) Clone an email queue item.boolean
process
(EmailQueue emailQueueItem) Creates and attempts to send an email given a email queue itemvoid
validateEmailQueueList
(List<EmailQueue> emailList) Validates that the emails do not reach the threshold (i.e.
-
Method Details
-
process
Creates and attempts to send an email given a email queue item- Parameters:
emailQueueItem
- - the email queue item to be processed- Returns:
- whether an email was sent
-
cloneEmailQueue
Clone an email queue item. This item status will be set to be Cloned.- Parameters:
emailQueueId
- the email queue id- Returns:
- the cloned email queue
-
validateEmailQueueList
Validates that the emails do not reach the threshold (i.e. flooding an address) where the to, from & subject are the same. This validation will be done on the email queue items that need to be sent in the one call of Email Queue job processing.- Parameters:
emailList
- of email queue items to validate- Since:
- 22.4.0
-