java.lang.Object
org.eclipse.angus.mail.imap.ResyncData
Resynchronization data as defined by the QRESYNC extension
(RFC 5162).
An instance of
ResyncData
is supplied to the
IMAPFolder open
method.
The CONDSTORE ResyncData
instance is used to enable the
CONDSTORE extension
(RFC 4551).
A ResyncData
instance with uidvalidity and modseq values
is used to enable the QRESYNC extension.- Since:
- JavaMail 1.5.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResyncData
Used to enable only the CONDSTORE extension. -
Constructor Summary
ConstructorDescriptionResyncData
(long uidvalidity, long modseq) Used to report on changes since the specified modseq.ResyncData
(long uidvalidity, long modseq, long[] uids) Used to limit the reported message changes to those with the specified UIDs.ResyncData
(long uidvalidity, long modseq, long uidFirst, long uidLast) Used to limit the reported message changes to those with UIDs in the specified range. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the MODSEQ value specified when this instance was created.long
Get the UIDVALIDITY value specified when this instance was created.
-
Field Details
-
CONDSTORE
Used to enable only the CONDSTORE extension.
-
-
Constructor Details
-
ResyncData
public ResyncData(long uidvalidity, long modseq) Used to report on changes since the specified modseq. If the UIDVALIDITY of the folder has changed, no message changes will be reported. The application must check the UIDVALIDITY of the folder after open to make sure it's the expected folder.- Parameters:
uidvalidity
- the UIDVALIDITYmodseq
- the MODSEQ
-
ResyncData
public ResyncData(long uidvalidity, long modseq, long uidFirst, long uidLast) Used to limit the reported message changes to those with UIDs in the specified range.- Parameters:
uidvalidity
- the UIDVALIDITYmodseq
- the MODSEQuidFirst
- the first UIDuidLast
- the last UID
-
ResyncData
public ResyncData(long uidvalidity, long modseq, long[] uids) Used to limit the reported message changes to those with the specified UIDs.- Parameters:
uidvalidity
- the UIDVALIDITYmodseq
- the MODSEQuids
- the UID values
-
-
Method Details
-
getUIDValidity
public long getUIDValidity()Get the UIDVALIDITY value specified when this instance was created.- Returns:
- the UIDVALIDITY value
-
getModSeq
public long getModSeq()Get the MODSEQ value specified when this instance was created.- Returns:
- the MODSEQ value
-