public interface MailboxService
| Modifier and Type | Method and Description |
|---|---|
void |
clearMailbox(String recipient)
Deletes all mail for the given recipient.
|
Iterable<MailboxMessage> |
getMessages(String recipient)
Retrieve all messages for a given recipient.
|
long |
sendMessage(MailboxMessage message)
Stores the given message in the appropriate mailbox.
|
Iterable<MailboxMessage> getMessages(String recipient) throws MailboxException
recipient - User whose mailbox is being read.MailboxExceptionlong sendMessage(MailboxMessage message) throws MailboxException
message - Message to send.MailboxExceptionvoid clearMailbox(String recipient) throws MailboxException
recipient - User whose mailbox will be cleared.MailboxExceptionCopyright © 2012–2025. All rights reserved.