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.MailboxException
long sendMessage(MailboxMessage message) throws MailboxException
message
- Message to send.MailboxException
void clearMailbox(String recipient) throws MailboxException
recipient
- User whose mailbox will be cleared.MailboxException
Copyright © 2012–2023. All rights reserved.