FileDocCategorySizeDatePackage
SpoolRepository.javaAPI DocApache James 2.3.14183Fri Jan 12 12:56:26 GMT 2007org.apache.james.services

SpoolRepository

public interface SpoolRepository implements 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

Fields Summary
String
ROLE
The component role used by components implementing this service
String
SPOOL
Define a STREAM repository. Streams are stored in the specified destination.
Constructors Summary
Methods Summary
public org.apache.mailet.Mailaccept()
Returns an arbitrarily selected mail deposited in this Repository. Usage: SpoolManager calls accept() to see if there are any unprocessed mails in the spool repository.

return
the mail

public org.apache.mailet.Mailaccept(long delay)
Returns 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.

return
the mail

public org.apache.mailet.Mailaccept(org.apache.james.services.SpoolRepository$AcceptFilter filter)
Returns an arbitrarily select mail deposited in this Repository for which the supplied filter's accept method returns true. Usage: RemoteDeliverySpool calls accept(filter) with some a filter which determines based on number of retries if the mail is ready for processing. If no message is ready the method will block until one is, the amount of time to block is determined by calling the filters getWaitTime method.

return
the mail