Interface IEmailQueueService

  • All Known Implementing Classes:
    EmailQueueServiceImpl

    public interface IEmailQueueService
    Provides an email queue service interface.
    • Method Detail

      • process

        boolean process​(EmailQueue emailQueueItem)
        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

        EmailQueue cloneEmailQueue​(Long emailQueueId)
        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

        void validateEmailQueueList​(List<EmailQueue> emailList)
        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