public class JamesMailSpooler extends Object implements Runnable, Configurable, LogEnabled, MailSpoolerMBean
| Constructor and Description |
|---|
JamesMailSpooler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.commons.configuration.HierarchicalConfiguration config)
Configure the object.
|
void |
dispose()
The dispose operation is called at the end of a components lifecycle.
|
int |
getCurrentSpoolCount() |
int |
getThreadCount()
Return the number of threads used for spooling
|
void |
init()
Initializes the spool manager.
|
void |
run()
This routinely checks the message spool for messages, and processes them
as necessary
|
void |
setLog(org.slf4j.Logger log)
Sets the service log.
|
void |
setMailProcessor(MailProcessor mailProcessor) |
void |
setMailQueueFactory(MailQueueFactory queueFactory) |
public void setMailQueueFactory(MailQueueFactory queueFactory)
public void setMailProcessor(MailProcessor mailProcessor)
public void configure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
Configurableconfigure in interface Configurableorg.apache.commons.configuration.ConfigurationExceptionConfigurable.configure(org.apache.commons.configuration.HierarchicalConfiguration)@PostConstruct public void init() throws Exception
Exceptionpublic void run()
@PreDestroy public void dispose()
Disposable.dispose()public void setLog(org.slf4j.Logger log)
LogEnabledsetLog in interface LogEnabledlog - not nullLogEnabled.setLog(org.slf4j.Logger)public int getThreadCount()
MailSpoolerMBeangetThreadCount in interface MailSpoolerMBeanMailSpoolerMBean.getThreadCount()public int getCurrentSpoolCount()
getCurrentSpoolCount in interface MailSpoolerMBeanMailSpoolerMBean.getCurrentSpoolCount()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.