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.
 
Fields inherited from interface org.apache.james.services.MailRepository
MAIL
 
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.
 
Methods inherited from interface org.apache.james.services.MailRepository
list, lock, remove, remove, retrieve, store, unlock
 

Field Detail

SPOOL

public static final String SPOOL
Define a STREAM repository. Streams are stored in the specified destination.

See Also:
Constant Field Values
Method Detail

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."