public interface MailRepository
| Modifier and Type | Method and Description |
|---|---|
Iterator<String> |
list()
List string keys of messages in repository.
|
boolean |
lock(String key)
Obtains a lock on a message identified by key
|
void |
remove(Collection<org.apache.mailet.Mail> mails)
Remove an Collection of mails from the repository
|
void |
remove(org.apache.mailet.Mail mail)
Removes a specified message
|
void |
remove(String key)
Removes a message identified by key.
|
org.apache.mailet.Mail |
retrieve(String key)
Retrieves a message given a key.
|
void |
store(org.apache.mailet.Mail mc)
Stores a message in this repository.
|
boolean |
unlock(String key)
Releases a lock on a message identified the key
|
void store(org.apache.mailet.Mail mc)
throws javax.mail.MessagingException
mc - the mail message to storejavax.mail.MessagingExceptionIterator<String> list() throws javax.mail.MessagingException
Iterator over the list of keys in the repositoryjavax.mail.MessagingExceptionorg.apache.mailet.Mail retrieve(String key) throws javax.mail.MessagingException
key - the key of the message to retrievejavax.mail.MessagingExceptionvoid remove(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
mail - the message to be removed from the repositoryjavax.mail.MessagingExceptionvoid remove(Collection<org.apache.mailet.Mail> mails) throws javax.mail.MessagingException
mails - The Collection of MailImpl's to deletejavax.mail.MessagingExceptionvoid remove(String key) throws javax.mail.MessagingException
key - the key of the message to be removed from the repositoryjavax.mail.MessagingExceptionboolean lock(String key) throws javax.mail.MessagingException
key - the key of the message to be lockedjavax.mail.MessagingExceptionboolean unlock(String key) throws javax.mail.MessagingException
key - the key of the message to be unlockedjavax.mail.MessagingExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.