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
Configurable
configure
in interface Configurable
org.apache.commons.configuration.ConfigurationException
Configurable.configure(org.apache.commons.configuration.HierarchicalConfiguration)
@PostConstruct public void init() throws Exception
Exception
public void run()
@PreDestroy public void dispose()
Disposable.dispose()
public void setLog(org.slf4j.Logger log)
LogEnabled
setLog
in interface LogEnabled
log
- not nullLogEnabled.setLog(org.slf4j.Logger)
public int getThreadCount()
MailSpoolerMBean
getThreadCount
in interface MailSpoolerMBean
MailSpoolerMBean.getThreadCount()
public int getCurrentSpoolCount()
getCurrentSpoolCount
in interface MailSpoolerMBean
MailSpoolerMBean.getCurrentSpoolCount()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.