|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a Repository for Spooling Mails. A spool repository is a transitory repository which should empty itself if inbound deliveries stop.
Nested Class Summary | |
static interface |
SpoolRepository.AcceptFilter
Implementations of AcceptFilter can be used to select which mails a SpoolRepository implementation returns from its accept (AcceptFilter) method |
Field Summary | |
static String |
ROLE
The component role used by components implementing this service |
static String |
SPOOL
Define a STREAM repository. |
Fields inherited from interface org.apache.james.services.MailRepository |
MAIL |
Method Summary | |
Mail |
accept()
Returns an arbitrarily selected mail deposited in this Repository. |
Mail |
accept(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. |
Mail |
accept(SpoolRepository.AcceptFilter filter)
Returns an arbitrarily select mail deposited in this Repository for which the supplied filter's accept method returns true. |
Methods inherited from interface org.apache.james.services.MailRepository |
list, lock, remove, remove, remove, retrieve, store, unlock |
Field Detail |
public static final String ROLE
public static final String SPOOL
Method Detail |
public Mail accept() throws InterruptedException
InterruptedException
public Mail accept(long delay) throws InterruptedException
InterruptedException
public Mail accept(SpoolRepository.AcceptFilter filter) throws InterruptedException
InterruptedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |