public class FileMailQueueFactory extends Object implements MailQueueFactory, LogEnabled
MailQueueFactory implementation which returns FileMailQueue instancesSPOOL| Constructor and Description |
|---|
FileMailQueueFactory() |
| Modifier and Type | Method and Description |
|---|---|
MailQueue |
getQueue(String name)
Return the
MailQueue for the name. |
void |
setFileSystem(FileSystem fs) |
void |
setLog(org.slf4j.Logger log)
Sets the service log.
|
void |
setSync(boolean sync)
If
true the later created FileMailQueue will call fsync after each message FileMailQueue.enQueue(org.apache.mailet.Mail) call. |
public void setFileSystem(FileSystem fs)
public void setSync(boolean sync)
true the later created FileMailQueue will call fsync after each message FileMailQueue.enQueue(org.apache.mailet.Mail) call. This
is needed to be fully RFC conform but gives a performance penalty. If you are brave enough you man set it to false
The default is truesync - public MailQueue getQueue(String name)
MailQueueFactoryMailQueue for the name.getQueue in interface MailQueueFactoryMailQueueFactory.getQueue(java.lang.String)public void setLog(org.slf4j.Logger log)
LogEnabledsetLog in interface LogEnabledlog - not nullLogEnabled.setLog(org.slf4j.Logger)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.