| org.apache.james.services.SpoolRepository
All known Subclasses: org.apache.james.mailrepository.MailStoreSpoolRepository, org.apache.james.mailrepository.JDBCSpoolRepository, org.apache.james.mailrepository.AvalonSpoolRepository, org.apache.james.test.mock.james.MockSpoolRepository, org.apache.james.test.mock.james.InMemorySpoolRepository,
SpoolRepository | public interface SpoolRepository extends MailRepository(Code) | | 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 |
Inner Class :public static interface AcceptFilter | |
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(AcceptFilter filter) Returns an arbitrarily select mail deposited in this Repository for
which the supplied filter's accept method returns true. |
ROLE | String ROLE(Code) | | The component role used by components implementing this service
|
SPOOL | String SPOOL(Code) | | Define a STREAM repository. Streams are stored in the specified
destination.
|
accept | Mail accept() throws InterruptedException(Code) | | 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.
the mail |
accept | Mail accept(long delay) throws InterruptedException(Code) | | 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.
the mail |
accept | Mail accept(AcceptFilter filter) throws InterruptedException(Code) | | 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.
the mail |
|
|