Class ScheduledJobEmailService
java.lang.Object
com.bluebell.greenhouse.radicle.services.email.impl.SimpleEmailService
com.bluebell.greenhouse.radicle.services.email.impl.ScheduledJobEmailService
- All Implemented Interfaces:
EmailService
Service-layer for notification emails about failed
Jobs.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionScheduledJobEmailService(io.github.cdimascio.dotenv.Dotenv dotenv, org.springframework.mail.javamail.JavaMailSender mailSender, EmailTemplateRenderer emailTemplateRenderer) Constructs the scheduled job email service. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendFailedJobEmail(Job job, ActionExecution failedExecution) Sends the failure notification for an attempt that has exhausted its retries.Methods inherited from class SimpleEmailService
getRequiredEnvVar, sendEmailMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmailService
getSystemRecipient, sendEmail
-
Constructor Details
-
ScheduledJobEmailService
public ScheduledJobEmailService(io.github.cdimascio.dotenv.Dotenv dotenv, org.springframework.mail.javamail.JavaMailSender mailSender, EmailTemplateRenderer emailTemplateRenderer) Constructs the scheduled job email service.- Parameters:
dotenv- environment variablesmailSender- mail senderemailTemplateRenderer- email template renderer
-
-
Method Details
-
sendFailedJobEmail
Sends the failure notification for an attempt that has exhausted its retries.- Parameters:
job- failedJobattemptfailedExecution- theActionExecutionthat ended the attempt, if one was recorded
-