|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpoolRepository
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 java.lang.String |
ROLE
The component role used by components implementing this service |
static java.lang.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 |
|---|
static final java.lang.String ROLE
static final java.lang.String SPOOL
| Method Detail |
|---|
Mail accept()
throws java.lang.InterruptedException
java.lang.InterruptedException
Mail accept(long delay)
throws java.lang.InterruptedException
java.lang.InterruptedException
Mail accept(SpoolRepository.AcceptFilter filter)
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||