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.MessagingException
Iterator<String> list() throws javax.mail.MessagingException
Iterator
over the list of keys in the repositoryjavax.mail.MessagingException
org.apache.mailet.Mail retrieve(String key) throws javax.mail.MessagingException
key
- the key of the message to retrievejavax.mail.MessagingException
void remove(org.apache.mailet.Mail mail) throws javax.mail.MessagingException
mail
- the message to be removed from the repositoryjavax.mail.MessagingException
void remove(Collection<org.apache.mailet.Mail> mails) throws javax.mail.MessagingException
mails
- The Collection of MailImpl
's to deletejavax.mail.MessagingException
void remove(String key) throws javax.mail.MessagingException
key
- the key of the message to be removed from the repositoryjavax.mail.MessagingException
boolean lock(String key) throws javax.mail.MessagingException
key
- the key of the message to be lockedjavax.mail.MessagingException
boolean unlock(String key) throws javax.mail.MessagingException
key
- the key of the message to be unlockedjavax.mail.MessagingException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.