This class represents the configuration of Aspirin. You can configure this software two ways:
There is a way to change behavior of Aspirin dynamically. You can use JMX to change configuration parameters. In the parameters list we marked the parameters which are applied immediately. For more information view {@link ConfigurationMBean}.
Name | Type | Description |
---|---|---|
aspirin.delivery.attempt.delay | Integer | The delay of next attempt to delivery in milliseconds. Change by JMX applied immediately. |
aspirin.delivery.attempt.count | Integer | Maximal number of delivery attempts of an email. Change by JMX applied immediately. |
aspirin.delivery.bounce-on-failure | Boolean | If true, a bounce email will be send to postmaster on failure. Change by JMX applied immediately. |
aspirin.delivery.debug | Boolean | If true, full SMTP communication will be logged. Change by JMX applied immediately. |
aspirin.delivery.expiry | Long | Time of sending expiry in milliseconds. The queue send an email until current time = queueing time + expiry. Default value is -1, it means forever (no expiration time). Change by JMX applied immediately. |
aspirin.delivery.threads.active.max | Integer | Maximum number of active delivery threads in the pool. Change by JMX applied immediately. |
aspirin.delivery.threads.idle.max | Integer | Maximum number of idle delivery threads in the pool (the deilvery threads over this limit will be shutdown). Change by JMX applied immediately. |
aspirin.delivery.timeout | Integer | Socket and {@link Transport} timeout in milliseconds. Change by JMX applied immediately. |
aspirin.encoding | String | The MIME encoding. Change by JMX applied immediately. |
aspirin.hostname | String | The hostname. Change by JMX applied immediately. |
aspirin.logger.name | String | The name of the logger. Change by JMX applied immediately. WARNING! Changing logger name cause replacing of logger. |
aspirin.logger.prefix | String | The prefix of the logger. This will be put in the logs at the first position. Change by JMX applied immediately. |
aspirin.postmaster.email | String | The email address of the postmaster. Change by JMX applied immediately. |
aspirin.mailstore.class | String | The class name of mail store. Default class is SimpleMailStore in org.masukomi.aspirin.core.store package. |
aspirin.queuestore.class | String | The class name of queue store. Default class is SimpleQueueStore in org.masukomi.aspirin.core.queue package. |
|
|
|
|
|
|
|
|
|
|
|
|