public class MessageCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addMessages(int count,
int newSeqNum)
Add count messages to the cache.
|
void |
expungeMessage(int seqnum)
Expunge the message with the given sequence number.
|
IMAPMessage |
getMessage(int msgnum)
Get the message object for the indicated message number.
|
IMAPMessage |
getMessageBySeqnum(int seqnum)
Get the message object for the indicated sequence number.
|
IMAPMessage[] |
removeExpungedMessages()
Remove all the expunged messages from the array,
returning a list of removed message objects.
|
IMAPMessage[] |
removeExpungedMessages(Message[] msgs)
Remove expunged messages in msgs from the array,
returning a list of removed message objects.
|
int |
seqnumOf(int msgnum)
Return the sequence number for the given message number.
|
int |
size()
Size of cache.
|
public int size()
public IMAPMessage getMessage(int msgnum)
msgnum
- the message numberpublic IMAPMessage getMessageBySeqnum(int seqnum)
seqnum
- the sequence number of the messagepublic void expungeMessage(int seqnum)
seqnum
- the sequence number of the message to expungepublic IMAPMessage[] removeExpungedMessages()
public IMAPMessage[] removeExpungedMessages(Message[] msgs)
msgs
- the messagespublic void addMessages(int count, int newSeqNum)
count
- the number of messgesnewSeqNum
- sequence number of first messagepublic int seqnumOf(int msgnum)
msgnum
- the message numberCopyright © 2010 - 2020 Adobe. All Rights Reserved