Package io.jmix.email
Class EmailerProperties
java.lang.Object
io.jmix.email.EmailerProperties
@Validated
@ConfigurationProperties(prefix="jmix.email")
@ConstructorBinding
public class EmailerProperties
extends Object
-
Constructor Summary
ConstructorDescriptionEmailerProperties
(String fromAddress, int scheduledSendingDelayCallCount, int messageQueueCapacity, int defaultSendingAttemptsLimit, int sendingTimeoutSec, String adminAddress, boolean sendAllToAdmin, boolean useFileStorage, String asyncSendingUsername, String emailSendingCron, int maxAgeOfImportantMessages, int maxAgeOfNonImportantMessages, String emailCleaningCron, boolean cleanFileStorage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
int
int
int
boolean
boolean
boolean
boolean
-
Constructor Details
-
EmailerProperties
public EmailerProperties(@DefaultValue("DoNotReply@localhost") String fromAddress, @DefaultValue("2") int scheduledSendingDelayCallCount, @DefaultValue("100") int messageQueueCapacity, @DefaultValue("10") int defaultSendingAttemptsLimit, @DefaultValue("240") int sendingTimeoutSec, @DefaultValue("admin@localhost") String adminAddress, @DefaultValue("false") boolean sendAllToAdmin, @DefaultValue("false") boolean useFileStorage, @DefaultValue("admin") String asyncSendingUsername, @DefaultValue("0 * * * * ?") String emailSendingCron, @DefaultValue("0") int maxAgeOfImportantMessages, @DefaultValue("0") int maxAgeOfNonImportantMessages, @DefaultValue("0 0 0 * * ?") String emailCleaningCron, @DefaultValue("false") boolean cleanFileStorage)
-
-
Method Details
-
getFromAddress
- See Also:
-
fromAddress
-
getScheduledSendingDelayCallCount
public int getScheduledSendingDelayCallCount()- See Also:
-
scheduledSendingDelayCallCount
-
getMessageQueueCapacity
public int getMessageQueueCapacity()- See Also:
-
messageQueueCapacity
-
getDefaultSendingAttemptsLimit
public int getDefaultSendingAttemptsLimit()- See Also:
-
defaultSendingAttemptsLimit
-
getSendingTimeoutSec
public int getSendingTimeoutSec()- See Also:
-
sendingTimeoutSec
-
getAdminAddress
- See Also:
-
adminAddress
-
isSendAllToAdmin
public boolean isSendAllToAdmin()- See Also:
-
sendAllToAdmin
-
isUseFileStorage
public boolean isUseFileStorage()- See Also:
-
useFileStorage
-
getAsyncSendingUsername
- See Also:
-
asyncSendingUsername
-
getUseDefaultQuartzConfiguration
public boolean getUseDefaultQuartzConfiguration()- See Also:
-
useDefaultQuartzConfiguration
-
getEmailSendingCron
- See Also:
-
emailSendingCron
-
getUseDefaultEmailCleaningQuartzConfiguration
public boolean getUseDefaultEmailCleaningQuartzConfiguration()- See Also:
-
useDefaultEmailCleaningQuartzConfiguration
-
getMaxAgeOfImportantMessages
public int getMaxAgeOfImportantMessages()- See Also:
-
maxAgeOfImportantMessages
-
getMaxAgeOfNonImportantMessages
public int getMaxAgeOfNonImportantMessages()- See Also:
-
maxAgeOfNonImportantMessages
-
getEmailCleaningCron
- See Also:
-
emailCleaningCron
-
getCleanFileStorage
public boolean getCleanFileStorage()- See Also:
-
cleanFileStorage
-