Interface EmailSchedulerService

All Known Implementing Classes:
PriorityQueueEmailSchedulerService

public interface EmailSchedulerService
  • Method Details

    • schedule

      @Async void schedule(Email mimeEmail, int desiredPriorityLevel)
      Schedules the sending of an email message at time now (UTC).
      Parameters:
      mimeEmail - an email to be sent
      desiredPriorityLevel - the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority level
    • schedule

      @Async void schedule(Email mimeEmail, OffsetDateTime scheduledDateTime, int desiredPriorityLevel)
      Schedules the sending of an email message.
      Parameters:
      mimeEmail - an email to be sent
      scheduledDateTime - the date-time at which the email should be sent
      desiredPriorityLevel - the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority level
    • schedule

      @Async void schedule(Email mimeEmail, int desiredPriorityLevel, String template, Map<String,Object> modelObject, InlinePicture... inlinePictures) throws CannotSendEmailException
      Schedules the sending of an email message at time now (UTC).
      Parameters:
      mimeEmail - an email to be sent
      desiredPriorityLevel - the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority level
      template - the reference to the template file
      modelObject - the model object to be used for the template engine, it may be null
      inlinePictures - list of pictures to be rendered inline in the template
      Throws:
      CannotSendEmailException
    • schedule

      @Async void schedule(Email mimeEmail, OffsetDateTime scheduledDateTime, int desiredPriorityLevel, String template, Map<String,Object> modelObject, InlinePicture... inlinePictures) throws CannotSendEmailException
      Schedules the sending of an email message.
      Parameters:
      mimeEmail - an email to be sent
      scheduledDateTime - the date-time at which the email should be sent
      desiredPriorityLevel - the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority level
      template - the reference to the template file
      modelObject - the model object to be used for the template engine, it may be null
      inlinePictures - list of pictures to be rendered inline in the template
      Throws:
      CannotSendEmailException
    • status

      default ServiceStatus status()