org.apache.james.mailrepository
Class AvalonSpoolRepository
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.james.mailrepository.AvalonMailRepository
|
+--org.apache.james.mailrepository.AvalonSpoolRepository
- All Implemented Interfaces:
- Component, Composable, Configurable, Initializable, LogEnabled, MailRepository, SpoolRepository
- public class AvalonSpoolRepository
- extends AvalonMailRepository
- implements SpoolRepository
Implementation of a MailRepository on a FileSystem.
Requires a configuration element in the .conf.xml file of the form:
Requires a logger called MailRepository.
- Version:
- 1.0.0, 24/04/1999
- Author:
- Federico Barbieri , Charles Benett
Method Summary |
String |
accept()
Returns the key for an arbitrarily selected mail deposited in this Repository.
|
String |
accept(long delay)
Returns the key for an arbitrarily selected mail deposited in this Repository that
is either ready immediately for delivery, or is younger than it's last_updated plus
the number of failed attempts times the delay time.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvalonSpoolRepository
public AvalonSpoolRepository()
accept
public String accept()
Returns the key for an arbitrarily selected mail deposited in this Repository.
Usage: SpoolManager calls accept() to see if there are any unprocessed
mails in the spool repository.
Synchronized to ensure thread safe access to the underlying spool.
- Specified by:
accept
in interface SpoolRepository
- Returns:
- the key for the mail
accept
public String accept(long delay)
Returns the key for an arbitrarily selected mail deposited in this Repository that
is either ready immediately for delivery, or is younger than it's last_updated plus
the number of failed attempts times the delay time.
Usage: RemoteDeliverySpool calls accept() with some delay and should block until an
unprocessed mail is available.
Synchronized to ensure thread safe access to the underlying spool.
- Specified by:
accept
in interface SpoolRepository
- Returns:
- the key for the mail
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."