Class TinyMailPlain
-
- All Implemented Interfaces:
public class TinyMailPlainUsing basic business types, exchanging data with external
- Since:
2023-01-13
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public Longidpublic Stringappspublic Stringrunspublic Stringconfpublic Stringfrompublic Stringtopublic Stringccpublic Stringbccpublic Stringreplypublic Stringsubjectpublic Stringcontentpublic Map<String, String>attachmentpublic Booleanhtmlpublic Stringmarkpublic LocalDateTimedatepublic LocalDateTimenextSendpublic IntegermaxFailpublic IntegermaxDonepublic IntegerrefTypepublic LongrefKey1public StringrefKey2public LocalDateTimecreateDtpublic LocalDateTimelastSendpublic StringlastFailpublic LocalDateTimelastDonepublic IntegerlastCostpublic IntegersumSendpublic IntegersumFailpublic IntegersumDonepublic Booleanretrypublic Booleancheck
-
Constructor Summary
Constructors Constructor Description TinyMailPlain()
-
Method Summary
Modifier and Type Method Description LonggetId()null when creating, target id when updating voidsetId(Long id)null when creating, target id when updating StringgetApps()The app it belongs to, using spring.application. voidsetApps(String apps)The app it belongs to, using spring.application. StringgetRuns()Required RunMode, current RuntimeMode. voidsetRuns(String runs)Required RunMode, current RuntimeMode. StringgetConf()the name of the config voidsetConf(String conf)the name of the config StringgetFrom()mail from, use the default config when empty voidsetFrom(String from)mail from, use the default config when empty StringgetTo()mail to, use the default config when empty, comma separated voidsetTo(String to)mail to, use the default config when empty, comma separated StringgetCc()mail cc, use the default config when empty, comma separated voidsetCc(String cc)mail cc, use the default config when empty, comma separated StringgetBcc()mail bcc, use the default config when empty, comma separated voidsetBcc(String bcc)mail bcc, use the default config when empty, comma separated StringgetReply()mail reply, use the default config when empty voidsetReply(String reply)mail reply, use the default config when empty StringgetSubject()mail subject, use the default config when empty voidsetSubject(String subject)mail subject, use the default config when empty StringgetContent()mail content, use the default config when empty voidsetContent(String content)mail content, use the default config when empty Map<String, String>getAttachment()mail attachment, display name and Resource of Map, where Resource supports classpath, file, url format voidsetAttachment(Map<String, String> attachment)mail attachment, display name and Resource of Map, where Resource supports classpath, file, url format BooleangetHtml()whether it is html mail, use the default config when empty voidsetHtml(Boolean html)whether it is html mail, use the default config when empty StringgetMark()business markers, mainly used for failed operations voidsetMark(String mark)business markers, mainly used for failed operations LocalDateTimegetDate()Mail timed delivery time, system time zone voidsetDate(LocalDateTime date)Mail timed delivery time, system time zone LocalDateTimegetNextSend()Next send time, system time zone, update when non-null voidsetNextSend(LocalDateTime nextSend)Next send time, system time zone, update when non-null IntegergetMaxFail()Maximum number of failures, update on non-null voidsetMaxFail(Integer maxFail)Maximum number of failures, update on non-null IntegergetMaxDone()Maximum number of successes, update when non-null voidsetMaxDone(Integer maxDone)Maximum number of successes, update when non-null IntegergetRefType()Reference type, indicates key1, key2 use voidsetRefType(Integer refType)Reference type, indicates key1, key2 use LonggetRefKey1()Reference key1, generally the primary key voidsetRefKey1(Long refKey1)Reference key1, generally the primary key StringgetRefKey2()Reference key2, generally composite type voidsetRefKey2(String refKey2)Reference key2, generally composite type LocalDateTimegetCreateDt()System time of mail creation, read-only, for display only voidsetCreateDt(LocalDateTime createDt)System time of mail creation, read-only, for display only LocalDateTimegetLastSend()The system time when the message was last sent, read-only, used only to display voidsetLastSend(LocalDateTime lastSend)The system time when the message was last sent, read-only, used only to display StringgetLastFail()The reason why the email failed to be sent last time, null is not failed, read only, only used to display voidsetLastFail(String lastFail)The reason why the email failed to be sent last time, null is not failed, read only, only used to display LocalDateTimegetLastDone()The system time when the message was last sent successfully, read-only, used only to display voidsetLastDone(LocalDateTime lastDone)The system time when the message was last sent successfully, read-only, used only to display IntegergetLastCost()Number of milliseconds since the last message was sent, read-only, for display only voidsetLastCost(Integer lastCost)Number of milliseconds since the last message was sent, read-only, for display only IntegergetSumSend()Total number of emails sent, read-only, for display only voidsetSumSend(Integer sumSend)Total number of emails sent, read-only, for display only IntegergetSumFail()Total number of failed emails, read-only, for display only voidsetSumFail(Integer sumFail)Total number of failed emails, read-only, for display only IntegergetSumDone()Total number of successful emails, read-only, for display only voidsetSumDone(Integer sumDone)Total number of successful emails, read-only, for display only BooleangetRetry()Sending parameters, whether to retry when sending fails voidsetRetry(Boolean retry)Sending parameters, whether to retry when sending fails BooleangetCheck()Send parameter, whether to check the sending condition, otherwise it is forced to send voidsetCheck(Boolean check)Send parameter, whether to check the sending condition, otherwise it is forced to send booleanequals(Object o)inthashCode()StringtoString()-
-
Method Detail
-
getSubject
String getSubject()
mail subject, use the default config when empty
-
setSubject
void setSubject(String subject)
mail subject, use the default config when empty
-
getContent
String getContent()
mail content, use the default config when empty
-
setContent
void setContent(String content)
mail content, use the default config when empty
-
getAttachment
Map<String, String> getAttachment()
mail attachment, display name and Resource of Map, where Resource supports classpath, file, url format
-
setAttachment
void setAttachment(Map<String, String> attachment)
mail attachment, display name and Resource of Map, where Resource supports classpath, file, url format
-
getDate
LocalDateTime getDate()
Mail timed delivery time, system time zone
-
setDate
void setDate(LocalDateTime date)
Mail timed delivery time, system time zone
-
getNextSend
LocalDateTime getNextSend()
Next send time, system time zone, update when non-null
-
setNextSend
void setNextSend(LocalDateTime nextSend)
Next send time, system time zone, update when non-null
-
getMaxFail
Integer getMaxFail()
Maximum number of failures, update on non-null
-
setMaxFail
void setMaxFail(Integer maxFail)
Maximum number of failures, update on non-null
-
getMaxDone
Integer getMaxDone()
Maximum number of successes, update when non-null
-
setMaxDone
void setMaxDone(Integer maxDone)
Maximum number of successes, update when non-null
-
getRefType
Integer getRefType()
Reference type, indicates key1, key2 use
-
setRefType
void setRefType(Integer refType)
Reference type, indicates key1, key2 use
-
getRefKey1
Long getRefKey1()
Reference key1, generally the primary key
-
setRefKey1
void setRefKey1(Long refKey1)
Reference key1, generally the primary key
-
getRefKey2
String getRefKey2()
Reference key2, generally composite type
-
setRefKey2
void setRefKey2(String refKey2)
Reference key2, generally composite type
-
getCreateDt
LocalDateTime getCreateDt()
System time of mail creation, read-only, for display only
-
setCreateDt
void setCreateDt(LocalDateTime createDt)
System time of mail creation, read-only, for display only
-
getLastSend
LocalDateTime getLastSend()
The system time when the message was last sent, read-only, used only to display
-
setLastSend
void setLastSend(LocalDateTime lastSend)
The system time when the message was last sent, read-only, used only to display
-
getLastFail
String getLastFail()
The reason why the email failed to be sent last time, null is not failed, read only, only used to display
-
setLastFail
void setLastFail(String lastFail)
The reason why the email failed to be sent last time, null is not failed, read only, only used to display
-
getLastDone
LocalDateTime getLastDone()
The system time when the message was last sent successfully, read-only, used only to display
-
setLastDone
void setLastDone(LocalDateTime lastDone)
The system time when the message was last sent successfully, read-only, used only to display
-
getLastCost
Integer getLastCost()
Number of milliseconds since the last message was sent, read-only, for display only
-
setLastCost
void setLastCost(Integer lastCost)
Number of milliseconds since the last message was sent, read-only, for display only
-
getSumSend
Integer getSumSend()
Total number of emails sent, read-only, for display only
-
setSumSend
void setSumSend(Integer sumSend)
Total number of emails sent, read-only, for display only
-
getSumFail
Integer getSumFail()
Total number of failed emails, read-only, for display only
-
setSumFail
void setSumFail(Integer sumFail)
Total number of failed emails, read-only, for display only
-
getSumDone
Integer getSumDone()
Total number of successful emails, read-only, for display only
-
setSumDone
void setSumDone(Integer sumDone)
Total number of successful emails, read-only, for display only
-
getCheck
Boolean getCheck()
Send parameter, whether to check the sending condition, otherwise it is forced to send
-
setCheck
void setCheck(Boolean check)
Send parameter, whether to check the sending condition, otherwise it is forced to send
-
hashCode
int hashCode()
-
-
-
-