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 true
sync
- public MailQueue getQueue(String name)
MailQueueFactory
MailQueue
for the name.getQueue
in interface MailQueueFactory
MailQueueFactory.getQueue(java.lang.String)
public void setLog(org.slf4j.Logger log)
LogEnabled
setLog
in interface LogEnabled
log
- not nullLogEnabled.setLog(org.slf4j.Logger)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.