| java.lang.Object | |
| ↳ | com.google.code.com.sun.mail.imap.MessageCache |
A cache of IMAPMessage objects along with the mapping from message number to IMAP sequence number. All operations on this object are protected by the messageCacheLock in IMAPFolder.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | SLOP | Grow the array by at least this much, to avoid constantly reallocating the array. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| debug | |||||||||||
| folder | The folder these messages belong to. | ||||||||||
| messages | |||||||||||
| out | |||||||||||
| seqnums | |||||||||||
| size | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add count messages to the cache.
| |||||||||||
Expunge the message with the given sequence number.
| |||||||||||
Get the message object for the indicated message number.
| |||||||||||
Get the message object for the indicated sequence number.
| |||||||||||
Remove all the expunged messages from the array,
returning a list of removed message objects.
| |||||||||||
Remove expunged messages in msgs from the array,
returning a list of removed message objects.
| |||||||||||
Return the sequence number for the given message number.
| |||||||||||
Size of cache.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Grow the array by at least this much, to avoid constantly reallocating the array.
Add count messages to the cache. newSeqNum is the sequence number of the first message added.
| count | |
|---|---|
| newSeqNum |
Expunge the message with the given sequence number.
| seqnum |
|---|
Get the message object for the indicated message number. If the message object hasn't been created, create it.
| msgnum |
|---|
Get the message object for the indicated sequence number. If the message object hasn't been created, create it. Return null if there's no message with that sequence number.
| seqnum |
|---|
Remove all the expunged messages from the array, returning a list of removed message objects.
Remove expunged messages in msgs from the array, returning a list of removed message objects. All messages in msgs must be IMAPMessage objects from this folder.
| msgs |
|---|
Return the sequence number for the given message number.
| msgnum |
|---|
Size of cache.