Class EmailQueueServiceImpl

    • Constructor Detail

      • EmailQueueServiceImpl

        public EmailQueueServiceImpl()
    • Method Detail

      • process

        public boolean process​(EmailQueue emailQueueItem)
        Create an email and attempts to send the email.

        Note that this method contains database transactions.

        The method change the email queue status for the EmailQueue item to COMPLETE state after sent the email.

        Specified by:
        process in interface IEmailQueueService
        Parameters:
        emailQueueItem - the email queue item to send
        Returns:
        true if the email is sent successfully
        See Also:
        IEmailQueueService.process(com.avoka.fc.core.entity.EmailQueue)
      • cloneEmailQueue

        public EmailQueue cloneEmailQueue​(Long emailQueueId)
        Clone an email queue item. This item status will be set to be Cloned.
        Specified by:
        cloneEmailQueue in interface IEmailQueueService
        Parameters:
        emailQueueId - the email queue id
        Returns:
        the cloned email queue