Class TinyMailSenderProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = TinyMailSenderProp.Key) public class TinyMailSenderProp
- Since:
2022-12-29
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic final static StringKey$dryrunpublic StringbizIdpublic final static StringKey$bizIdpublic StringbizMarkpublic final static StringKey$bizMarkpublic DurationerrSendpublic final static StringKey$errSendpublic DurationerrAuthpublic final static StringKey$errAuthpublic Map<BigDecimal, String>errHostpublic final static StringKey$errHostpublic Map<BigDecimal, String>errMailpublic final static StringKey$errMailpublic Map<String, Duration>perIdlepublic final static StringKey$perIdlepublic Map<String, Duration>maxIdlepublic final static StringKey$maxIdlepublic Array<String>forceTopublic final static StringKey$forceTopublic Array<String>forceCcpublic final static StringKey$forceCcpublic Array<String>forceBccpublic final static StringKey$forceBccpublic StringforcePrefixpublic final static StringKey$forcePrefix
-
Constructor Summary
Constructors Constructor Description TinyMailSenderProp()
-
Method Summary
Modifier and Type Method Description StringgetBizId()biz-id Header to locate mail by business, default mail id. voidsetBizId(String bizId)biz-id Header to locate mail by business, default mail id. StringgetBizMark()biz-mark Header to locate data by business, eg. voidsetBizMark(String bizMark)biz-mark Header to locate data by business, eg. DurationgetErrSend()how much time to wait if MailSendException, default 5 minutes. voidsetErrSend(Duration errSend)how much time to wait if MailSendException, default 5 minutes. DurationgetErrAuth()how much time to wait if MailAuthenticationException, default 1 hour. voidsetErrAuth(Duration errAuth)how much time to wait if MailAuthenticationException, default 1 hour. Map<BigDecimal, String>getErrHost()how many seconds to wait for the host if it contains the following exception message. voidsetErrHost(Map<BigDecimal, String> errHost)how many seconds to wait for the host if it contains the following exception message. Map<BigDecimal, String>getErrMail()how many seconds to wait to resend this email if it contains the following exception message. voidsetErrMail(Map<BigDecimal, String> errMail)how many seconds to wait to resend this email if it contains the following exception message. Map<String, Duration>getPerIdle()interval of each login of the same mailhost, avoid limit frequency, 0 is ignored. voidsetPerIdle(Map<String, Duration> perIdle)interval of each login of the same mailhost, avoid limit frequency, 0 is ignored. Map<String, Duration>getMaxIdle()max wait time for the same mailhost, if less then wait, otherwise throw MailWaitException, 0 is ignored. voidsetMaxIdle(Map<String, Duration> maxIdle)max wait time for the same mailhost, if less then wait, otherwise throw MailWaitException, 0 is ignored. Array<String>getForceTo()force to replace the real "to", string arrays, comma separated. voidsetForceTo(Array<String> forceTo)force to replace the real "to", string arrays, comma separated. Array<String>getForceCc()force to replace the real "cc", string arrays, comma separated. voidsetForceCc(Array<String> forceCc)force to replace the real "cc", string arrays, comma separated. Array<String>getForceBcc()force to replace the real "bcc", string arrays, comma separated. voidsetForceBcc(Array<String> forceBcc)force to replace the real "bcc", string arrays, comma separated. StringgetForcePrefix()force to add prefix to the real subject. voidsetForcePrefix(String forcePrefix)force to add prefix to the real subject. booleanisDryrun()whether to dry run, log only without actually send booleanequals(@Nullable() Object o)inthashCode()StringtoString()voidsetDryrun(boolean dryrun)whether to dry run, log only without actually send -
-
Method Detail
-
getBizMark
String getBizMark()
biz-mark Header to locate data by business, eg. orderNumber.
-
setBizMark
void setBizMark(String bizMark)
biz-mark Header to locate data by business, eg. orderNumber.
-
getErrSend
Duration getErrSend()
how much time to wait if MailSendException, default 5 minutes.
-
setErrSend
void setErrSend(Duration errSend)
how much time to wait if MailSendException, default 5 minutes.
-
getErrAuth
Duration getErrAuth()
how much time to wait if MailAuthenticationException, default 1 hour.
-
setErrAuth
void setErrAuth(Duration errAuth)
how much time to wait if MailAuthenticationException, default 1 hour.
-
getErrHost
Map<BigDecimal, String> getErrHost()
how many seconds to wait for the host if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.
-
setErrHost
void setErrHost(Map<BigDecimal, String> errHost)
how many seconds to wait for the host if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.
-
getErrMail
Map<BigDecimal, String> getErrMail()
how many seconds to wait to resend this email if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.
-
setErrMail
void setErrMail(Map<BigDecimal, String> errMail)
how many seconds to wait to resend this email if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.
-
getPerIdle
Map<String, Duration> getPerIdle()
interval of each login of the same mailhost, avoid limit frequency, 0 is ignored.
-
setPerIdle
void setPerIdle(Map<String, Duration> perIdle)
interval of each login of the same mailhost, avoid limit frequency, 0 is ignored.
-
getMaxIdle
Map<String, Duration> getMaxIdle()
max wait time for the same mailhost, if less then wait, otherwise throw MailWaitException, 0 is ignored.
-
setMaxIdle
void setMaxIdle(Map<String, Duration> maxIdle)
max wait time for the same mailhost, if less then wait, otherwise throw MailWaitException, 0 is ignored.
-
getForceTo
Array<String> getForceTo()
force to replace the real "to", string arrays, comma separated.
-
setForceTo
void setForceTo(Array<String> forceTo)
force to replace the real "to", string arrays, comma separated.
-
getForceCc
Array<String> getForceCc()
force to replace the real "cc", string arrays, comma separated.
-
setForceCc
void setForceCc(Array<String> forceCc)
force to replace the real "cc", string arrays, comma separated.
-
getForceBcc
Array<String> getForceBcc()
force to replace the real "bcc", string arrays, comma separated.
-
setForceBcc
void setForceBcc(Array<String> forceBcc)
force to replace the real "bcc", string arrays, comma separated.
-
getForcePrefix
String getForcePrefix()
force to add prefix to the real subject.
-
setForcePrefix
void setForcePrefix(String forcePrefix)
force to add prefix to the real subject.
-
isDryrun
boolean isDryrun()
whether to dry run, log only without actually send
-
hashCode
int hashCode()
-
setDryrun
void setDryrun(boolean dryrun)
whether to dry run, log only without actually send
-
-
-
-