Class TinyMailServiceProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = TinyMailServiceProp.Key) public class TinyMailServiceProp
- Since:
2022-12-29
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic intmaxFailpublic final static StringKey$maxFailpublic intmaxDonepublic final static StringKey$maxDonepublic DurationmaxNextpublic final static StringKey$maxNextpublic DurationtryNextpublic final static StringKey$tryNextpublic intbatchSizepublic final static StringKey$batchSizepublic intwarnSizepublic final static StringKey$warnSizepublic DurationbootScanpublic final static StringKey$bootScanpublic final static StringKey$onlyApppublic final static StringKey$onlyRun
-
Constructor Summary
Constructors Constructor Description TinyMailServiceProp()
-
Method Summary
Modifier and Type Method Description intgetMaxFail()max failures for the same email. voidsetMaxFail(int maxFail)max failures for the same email. intgetMaxDone()max success for the same email. voidsetMaxDone(int maxDone)max success for the same email. DurationgetMaxNext()the email does not need to be sent anymore as it has been a certain amount of time. voidsetMaxNext(Duration maxNext)the email does not need to be sent anymore as it has been a certain amount of time. DurationgetTryNext()how soon to retry after failure, default 1 minute. voidsetTryNext(Duration tryNext)how soon to retry after failure, default 1 minute. intgetBatchSize()max number of bulk emails sent at one time. voidsetBatchSize(int batchSize)max number of bulk emails sent at one time. intgetWarnSize()if this capacity is exceeded, log it as Warn. voidsetWarnSize(int warnSize)if this capacity is exceeded, log it as Warn. DurationgetBootScan()how long after start, scan for unsent mail, `0` for no scan. voidsetBootScan(Duration bootScan)how long after start, scan for unsent mail, `0` for no scan. booleanisOnlyApp()whether to send emails from this app only. booleanisOnlyRun()whether to send emails from this RumMode only. booleanequals(@Nullable() Object o)inthashCode()StringtoString()voidsetOnlyApp(boolean onlyApp)whether to send emails from this app only. voidsetOnlyRun(boolean onlyRun)whether to send emails from this RumMode only. -
-
Method Detail
-
getMaxFail
int getMaxFail()
max failures for the same email.
-
setMaxFail
void setMaxFail(int maxFail)
max failures for the same email.
-
getMaxDone
int getMaxDone()
max success for the same email.
-
setMaxDone
void setMaxDone(int maxDone)
max success for the same email.
-
getMaxNext
Duration getMaxNext()
the email does not need to be sent anymore as it has been a certain amount of time. default 1 day.
-
setMaxNext
void setMaxNext(Duration maxNext)
the email does not need to be sent anymore as it has been a certain amount of time. default 1 day.
-
getTryNext
Duration getTryNext()
how soon to retry after failure, default 1 minute.
-
setTryNext
void setTryNext(Duration tryNext)
how soon to retry after failure, default 1 minute.
-
getBatchSize
int getBatchSize()
max number of bulk emails sent at one time.
-
setBatchSize
void setBatchSize(int batchSize)
max number of bulk emails sent at one time.
-
getWarnSize
int getWarnSize()
if this capacity is exceeded, log it as Warn.
-
setWarnSize
void setWarnSize(int warnSize)
if this capacity is exceeded, log it as Warn.
-
getBootScan
Duration getBootScan()
how long after start, scan for unsent mail, `0` for no scan.
-
setBootScan
void setBootScan(Duration bootScan)
how long after start, scan for unsent mail, `0` for no scan.
-
isOnlyApp
boolean isOnlyApp()
whether to send emails from this app only.
-
isOnlyRun
boolean isOnlyRun()
whether to send emails from this RumMode only.
-
hashCode
int hashCode()
-
setOnlyApp
void setOnlyApp(boolean onlyApp)
whether to send emails from this app only.
-
setOnlyRun
void setOnlyRun(boolean onlyRun)
whether to send emails from this RumMode only.
-
-
-
-