Interface EmailSchedulerService
- All Known Implementing Classes:
PriorityQueueEmailSchedulerService
public interface EmailSchedulerService
-
Method Summary
Modifier and TypeMethodDescriptionvoidSchedules the sending of an email message at time now (UTC).voidschedule(Email mimeEmail, int desiredPriorityLevel, String template, Map<String, Object> modelObject, InlinePicture... inlinePictures) Schedules the sending of an email message at time now (UTC).voidschedule(Email mimeEmail, OffsetDateTime scheduledDateTime, int desiredPriorityLevel) Schedules the sending of an email message.voidschedule(Email mimeEmail, OffsetDateTime scheduledDateTime, int desiredPriorityLevel, String template, Map<String, Object> modelObject, InlinePicture... inlinePictures) Schedules the sending of an email message.default ServiceStatusstatus()
-
Method Details
-
schedule
Schedules the sending of an email message at time now (UTC).- Parameters:
mimeEmail- an email to be sentdesiredPriorityLevel- the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority level
-
schedule
Schedules the sending of an email message.- Parameters:
mimeEmail- an email to be sentscheduledDateTime- the date-time at which the email should be sentdesiredPriorityLevel- 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 CannotSendEmailExceptionSchedules the sending of an email message at time now (UTC).- Parameters:
mimeEmail- an email to be sentdesiredPriorityLevel- the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority leveltemplate- the reference to the template filemodelObject- the model object to be used for the template engine, it may be nullinlinePictures- 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 CannotSendEmailExceptionSchedules the sending of an email message.- Parameters:
mimeEmail- an email to be sentscheduledDateTime- the date-time at which the email should be sentdesiredPriorityLevel- the desiredPriority level for the email: the emails with scheduledTime<=now are sent according to an order depending on their desiredPriority leveltemplate- the reference to the template filemodelObject- the model object to be used for the template engine, it may be nullinlinePictures- list of pictures to be rendered inline in the template- Throws:
CannotSendEmailException
-
status
-