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)
public IMAPMessage getMessageBySeqnum(int seqnum)
public void expungeMessage(int seqnum)
public IMAPMessage[] removeExpungedMessages()
public IMAPMessage[] removeExpungedMessages(Message[] msgs)
public void addMessages(int count, int newSeqNum)
public int seqnumOf(int msgnum)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"