Package google.registry.batch
Class SendExpiringCertificateNotificationEmailAction
java.lang.Object
google.registry.batch.SendExpiringCertificateNotificationEmailAction
- All Implemented Interfaces:
Runnable
An action that sends notification emails to registrars whose certificates are expiring soon.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static enum
Certificate types for X509Certificate. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static final org.joda.time.Duration
Used as an offset when storing the last notification email sent date. -
Constructor Summary
ConstructorDescriptionSendExpiringCertificateNotificationEmailAction
(String expirationWarningEmailBodyText, String expirationWarningEmailSubjectText, GmailClient gmailClient, CertificateChecker certificateChecker, Response response) -
Method Summary
-
Field Details
-
PATH
- See Also:
-
UPDATE_TIME_OFFSET
protected static final org.joda.time.Duration UPDATE_TIME_OFFSETUsed as an offset when storing the last notification email sent date.This is used to handle edges cases when the update happens in between the day switch. For instance,if the job starts at 2:00 am every day and it finishes at 2:03 of the same day, then next day at 2am, the date difference will be less than a day, which will lead to the date difference between two successive email sent date being the expected email interval days + 1;
-
-
Constructor Details
-
SendExpiringCertificateNotificationEmailAction
@Inject public SendExpiringCertificateNotificationEmailAction(@Config("expirationWarningEmailBodyText") String expirationWarningEmailBodyText, @Config("expirationWarningEmailSubjectText") String expirationWarningEmailSubjectText, GmailClient gmailClient, CertificateChecker certificateChecker, Response response)
-
-
Method Details