org.apache.james.services
Interface SpoolRepository
- All Superinterfaces:
- MailRepository
- All Known Implementing Classes:
- AvalonSpoolRepository, JDBCSpoolRepository
- public interface SpoolRepository
- extends MailRepository
Interface for a Repository for Spooling Mails.
A spool repository is a transitory repository which should empty itself
if inbound deliveries stop.
- Version:
- 1.0.0, 24/04/1999
- Author:
- Federico Barbieri
Field Summary |
static String |
SPOOL
Define a STREAM repository. |
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 select 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.
|
SPOOL
public static final String SPOOL
- Define a STREAM repository. Streams are stored in the specified
destination.
- See Also:
- Constant Field Values
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.
- Returns:
- the key for the mail
accept
public String accept(long delay)
- Returns the key for an arbitrarily select 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.
- Returns:
- the key for the mail
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."