Package com.sun.mail.imap
Class ResyncData
- java.lang.Object
-
- com.sun.mail.imap.ResyncData
-
public class ResyncData extends java.lang.Object
Resynchronization data as defined by the QRESYNC extension (RFC 5162). An instance ofResyncData
is supplied to theIMAPFolder open
method. The CONDSTOREResyncData
instance is used to enable the CONDSTORE extension (RFC 4551). AResyncData
instance with uidvalidity and modseq values is used to enable the QRESYNC extension.- Since:
- JavaMail 1.5.1
-
-
Field Summary
Fields Modifier and Type Field Description static ResyncData
CONDSTORE
Used to enable only the CONDSTORE extension.private long
modseq
private UIDSet[]
uids
private long
uidvalidity
-
Constructor Summary
Constructors Constructor Description ResyncData(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getModSeq()
Get the MODSEQ value specified when this instance was created.(package private) UIDSet[]
getUIDSet()
long
getUIDValidity()
Get the UIDVALIDITY value specified when this instance was created.
-
-
-
Field Detail
-
uidvalidity
private long uidvalidity
-
modseq
private long modseq
-
uids
private UIDSet[] uids
-
CONDSTORE
public static final ResyncData CONDSTORE
Used to enable only the CONDSTORE extension.
-
-
Constructor Detail
-
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 Detail
-
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
-
getUIDSet
UIDSet[] getUIDSet()
-
-