@StableMinor(version="12.4", sinceVersion="4.0") public interface IMailConfig
Modifier and Type | Interface and Description |
---|---|
static class |
IMailConfig.CryptographicProtocol
Possible cryptographic protocols used in mail.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockInterval()
Returns the interval, in seconds, to wait when a block
of
getBlockSize() mails are sent. |
int |
getBlockSize()
Returns the block size.
|
IMailConfig.CryptographicProtocol |
getCryptographicProtocol()
Returns the cryptographic protocol to be used.
|
String |
getDefaultFromAddress()
Returns the default from e-mail address, that will be used if no from
is specified for a e-mail to be sent.
|
String |
getMailSenderClass()
Returns the class that should be used for sending mails.
|
int |
getMaxSendThreads()
Returns the maximum number of threads to process the sendmail queue.
|
int |
getQueueLockTimeout()
Returns the time in seconds for mail queue lock timeout.
|
boolean |
getRemoveMailsSent()
Returns true if mails sent successfully should be automatically
removed from the database.
|
int |
getSendInterval()
Returns the interval, in seconds, to wait between each mail send in
a thread processing the sendmail queue.
|
String |
getSmtpHost()
Returns the smtp server hostname.
|
String |
getSmtpPassword()
Returns the smtp server authentication password.
|
int |
getSmtpPort()
Returns the smtp server connection port.
|
String |
getSmtpUser()
Returns the smtp server authentication user.
|
int |
getSocketConnectionTimeout()
Returns the socket connection timeout value in milliseconds.
|
int |
getSocketTimeout()
Returns the socket I/O timeout value in milliseconds.
|
void |
setBlockInterval(int blockInterval)
Sets the interval, in seconds, to wait when a block
of
getBlockSize() mails are sent. |
void |
setBlockSize(int blockSize)
Sets the block size.
|
void |
setCryptographicProtocol(IMailConfig.CryptographicProtocol protocol)
Sets the cryptographic protocol to be used.
|
void |
setDefaultFromAddress(String defaultFromAddress)
Sets the default from address.
|
void |
setMailSenderClass(String className)
Sets the class that should be used for sending mails.
|
void |
setMaxSendThreads(int maxSendThreads)
Sets the maximum number of threads to process the sendmail queue.
|
void |
setQueueLockTimeout(int queueLockTimeout)
Sets the time in seconds for mail queue lock timeout.
|
void |
setRemoveMailsSent(boolean remove)
Sets if mails sent successfully should be automatically
removed from the database.
|
void |
setSendInterval(int sendInterval)
Sets the interval, in seconds, to wait between each mail send in
a thread processing the sendmail queue.
|
void |
setSmtpHost(String smtpHost)
Sets the smtp server hostname.
|
void |
setSmtpPassword(String smtpPassword)
Sets the smtp server authentication password.
|
void |
setSmtpPort(int smtpPort)
Sets the smtp server connection port.
|
void |
setSmtpUser(String smtpUser)
Sets the smtp server authentication user.
|
void |
setSocketConnectionTimeout(int socketConnectionTimeout)
Sets the Socket connection timeout value in milliseconds.
|
void |
setSocketTimeout(int socketTimeout)
Sets the socket I/O timeout value in milliseconds.
|
int getQueueLockTimeout()
void setQueueLockTimeout(int queueLockTimeout)
queueLockTimeout
- the value to set.getQueueLockTimeout()
boolean getRemoveMailsSent()
void setRemoveMailsSent(boolean remove)
remove
- the value to set.int getBlockInterval()
getBlockSize()
mails are sent.void setBlockInterval(int blockInterval)
getBlockSize()
mails are sent.blockInterval
- the interval value to set.int getBlockSize()
void setBlockSize(int blockSize)
blockSize
- the block size value.getBlockSize()
String getDefaultFromAddress()
void setDefaultFromAddress(String defaultFromAddress)
defaultFromAddress
- the default from address.getDefaultFromAddress()
int getMaxSendThreads()
void setMaxSendThreads(int maxSendThreads)
maxSendThreads
- the value to set.int getSendInterval()
void setSendInterval(int sendInterval)
sendInterval
- the interval, in seconds.String getSmtpHost()
void setSmtpHost(String smtpHost)
smtpHost
- the value to set.String getSmtpPassword()
void setSmtpPassword(String smtpPassword)
smtpPassword
- the password value.int getSmtpPort()
void setSmtpPort(int smtpPort)
smtpHost
- the value to set.IMailConfig.CryptographicProtocol getCryptographicProtocol()
void setCryptographicProtocol(IMailConfig.CryptographicProtocol protocol)
protocol
- the string representing the protocol to be used (NONE, SSL or TLS).int getSocketConnectionTimeout()
void setSocketConnectionTimeout(int socketConnectionTimeout)
smtpConnectionTimeout
- the value to set.int getSocketTimeout()
void setSocketTimeout(int socketTimeout)
smtpTimeout
- the value to set.String getSmtpUser()
void setSmtpUser(String smtpUser)
smtpUser
- the smtp server authentication user,
or null if no authentication is to be used.String getMailSenderClass()
IMailSender
.void setMailSenderClass(String className)
IMailSender
.className
- the class name to set.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.