public interface ConfigurationMBean
This is the JMX bean of Aspirin configuration. Some configuration parameter could be applied immediately.
| Modifier and Type | Field and Description |
|---|---|
static long |
NEVER_EXPIRES
Value of never expiration.
|
static String |
PARAM_DELIVERY_ATTEMPT_COUNT |
static String |
PARAM_DELIVERY_ATTEMPT_DELAY |
static String |
PARAM_DELIVERY_BOUNCE_ON_FAILURE |
static String |
PARAM_DELIVERY_DEBUG |
static String |
PARAM_DELIVERY_EXPIRY |
static String |
PARAM_DELIVERY_THREADS_ACTIVE_MAX |
static String |
PARAM_DELIVERY_THREADS_IDLE_MAX |
static String |
PARAM_DELIVERY_TIMEOUT |
static String |
PARAM_ENCODING |
static String |
PARAM_HOSTNAME |
static String |
PARAM_LOGGER_NAME |
static String |
PARAM_LOGGER_PREFIX |
static String |
PARAM_MAILSTORE_CLASS |
static String |
PARAM_POSTMASTER_EMAIL |
| Modifier and Type | Method and Description |
|---|---|
int |
getDeliveryAttemptCount() |
int |
getDeliveryAttemptDelay() |
int |
getDeliveryThreadsActiveMax() |
int |
getDeliveryThreadsIdleMax() |
int |
getDeliveryTimeout() |
String |
getEncoding() |
long |
getExpiry() |
String |
getHostname() |
String |
getLoggerName() |
String |
getLoggerPrefix() |
String |
getMailStoreClassName() |
String |
getPostmasterEmail() |
boolean |
isDeliveryBounceOnFailure() |
boolean |
isDeliveryDebug() |
void |
setDeliveryAttemptCount(int attemptCount)
Set the maximal count of delivery tries of a temporary undeliverable
email.
|
void |
setDeliveryAttemptDelay(int delay)
Set the time interval between two delivery attempts of a temporary
undeliverable email.
|
void |
setDeliveryBounceOnFailure(boolean bounce)
Set the bounce email sending (on delivery failures).
|
void |
setDeliveryDebug(boolean debug)
Set the debug of full SMTP communication.
|
void |
setDeliveryThreadsActiveMax(int activeThreadsMax)
Set the maximal count of paralel running delivery threads.
|
void |
setDeliveryThreadsIdleMax(int idleThreadsMax)
Set the maximal count of idle delivery threads stored in pool.
|
void |
setDeliveryTimeout(int timeout)
Set the timeout of
Transport and Socket which is used if
communication is too slow. |
void |
setEncoding(String encoding)
Set the encoding of MIME messages.
|
void |
setExpiry(long expiry)
Set the default expiry of MIME messages.
|
void |
setHostname(String hostname)
Set the hostname, which is used in HELO command of SMTP communication.
|
void |
setMailStoreClassName(String className)
Set the mail store class name, where MimeMessages will be stored.
|
void |
setPostmasterEmail(String emailAddress)
Set the email address of postmaster.
|
static final String PARAM_DELIVERY_ATTEMPT_DELAY
static final String PARAM_DELIVERY_ATTEMPT_COUNT
static final String PARAM_DELIVERY_BOUNCE_ON_FAILURE
static final String PARAM_DELIVERY_DEBUG
static final String PARAM_DELIVERY_EXPIRY
static final String PARAM_DELIVERY_THREADS_ACTIVE_MAX
static final String PARAM_DELIVERY_THREADS_IDLE_MAX
static final String PARAM_DELIVERY_TIMEOUT
static final String PARAM_ENCODING
static final String PARAM_HOSTNAME
static final String PARAM_LOGGER_NAME
static final String PARAM_LOGGER_PREFIX
static final String PARAM_POSTMASTER_EMAIL
static final String PARAM_MAILSTORE_CLASS
static final long NEVER_EXPIRES
int getDeliveryAttemptDelay()
int getDeliveryAttemptCount()
int getDeliveryThreadsActiveMax()
int getDeliveryThreadsIdleMax()
int getDeliveryTimeout()
Transport timeout in a delivery.String getEncoding()
long getExpiry()
String getLoggerName()
String getLoggerPrefix()
String getMailStoreClassName()
String getPostmasterEmail()
String getHostname()
boolean isDeliveryBounceOnFailure()
boolean isDeliveryDebug()
void setDeliveryAttemptDelay(int delay)
delay - The value of delay in milliseconds.void setDeliveryAttemptCount(int attemptCount)
attemptCount - The count of deliery attempts.void setDeliveryBounceOnFailure(boolean bounce)
bounce - If true, then a bounce email will be send to postmaster
on delivery failures.void setDeliveryDebug(boolean debug)
debug - If true, then the full communication will be logged.void setDeliveryThreadsActiveMax(int activeThreadsMax)
threadsCount - The count of delivery threads.void setDeliveryThreadsIdleMax(int idleThreadsMax)
threadsCount - The count of delivery threads.void setDeliveryTimeout(int timeout)
Transport and Socket which is used if
communication is too slow.timeout - The value of timeout in milliseconds.void setEncoding(String encoding)
encoding - The MIME encoding.void setExpiry(long expiry)
expiry - The default expiry time.void setMailStoreClassName(String className)
SimpleMailStore and FileMailStore.className - void setPostmasterEmail(String emailAddress)
emailAddress - The email address of postmaster.void setHostname(String hostname)
hostname - The name of this server or application.Copyright © 2013. All Rights Reserved.