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 java.lang.String |
SPOOL
Define a STREAM repository. |
Method Summary |
java.lang.String |
accept()
Returns the key for an arbitrarily selected mail deposited in this Repository. |
java.lang.String |
accept(long delay)
Returns the key for an arbitrarily select mail depository in this Repositry 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 java.lang.String SPOOL
- Define a STREAM repository. Streams are stored in the specified
destination.
accept
public java.lang.String accept()
- Returns the key for an arbitrarily selected mail deposited in this Repository.
Useage: SpoolManager calls accept() to see if there are any unprocessed
mails in the spool repository.
accept
public java.lang.String accept(long delay)
- Returns the key for an arbitrarily select mail depository in this Repositry 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.
Useage: RemoteDeliverySpool calls accept() with some delay and should block until an
unprocessed mail is available.
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."