public class MailboxImpl extends Object implements MailboxService
| Constructor and Description |
|---|
MailboxImpl(Session session,
String keyspace) |
| 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.
|
void |
init() |
long |
sendMessage(MailboxMessage message)
Stores the given message in the appropriate mailbox.
|
public void init()
public Iterable<MailboxMessage> getMessages(String recipient) throws MailboxException
MailboxServicegetMessages in interface MailboxServicerecipient - User whose mailbox is being read.MailboxExceptionpublic long sendMessage(MailboxMessage message) throws MailboxException
MailboxServicesendMessage in interface MailboxServicemessage - Message to send.MailboxExceptionpublic void clearMailbox(String recipient) throws MailboxException
MailboxServiceclearMailbox in interface MailboxServicerecipient - User whose mailbox will be cleared.MailboxExceptionCopyright © 2012–2025. All rights reserved.