|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a Repository to store Mails.
Field Summary | |
static String |
MAIL
Define a MAIL repository. |
Method Summary | |
Iterator |
list()
List string keys of messages in repository. |
boolean |
lock(String key)
Obtains a lock on a message identified by key |
void |
remove(MailImpl mail)
Removes a specified message |
void |
remove(String key)
Removes a message identified by key. |
MailImpl |
retrieve(String key)
Retrieves a message given a key. |
void |
store(MailImpl mc)
Stores a message in this repository. |
boolean |
unlock(String key)
Releases a lock on a message identified the key |
Field Detail |
public static final String MAIL
Method Detail |
public void store(MailImpl mc)
mc
- the mail message to storepublic Iterator list()
Iterator
over the list of keys in the repositorypublic MailImpl retrieve(String key)
key
- the key of the message to retrieve
public void remove(MailImpl mail)
mail
- the message to be removed from the repositorypublic void remove(String key)
key
- the key of the message to be removed from the repositorypublic boolean lock(String key)
key
- the key of the message to be locked
public boolean unlock(String key)
key
- the key of the message to be unlocked
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |