Top Description Fields Constructors Methods
com.sun.mail.imap

public Class ResyncData

extends Object
Class Inheritance
Imports
com.sun.mail.imap.protocol.UIDSet

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.
Author
Bill Shannon
Since
JavaMail 1.5.1

Field Summary

Modifier and TypeField and Description
public static final ResyncData
CONDSTORE

Used to enable only the CONDSTORE extension.

private long
private UIDSet[]
private long

Constructor Summary

AccessConstructor and Description
public
ResyncData(long
the UIDVALIDITY
uidvalidity
,
long
the MODSEQ
modseq
)

Used to report on changes since the specified modseq.

public
ResyncData(long
the UIDVALIDITY
uidvalidity
,
long
the MODSEQ
modseq
,
long
the first UID
uidFirst
,
long
the last UID
uidLast
)

Used to limit the reported message changes to those with UIDs in the specified range.

public
ResyncData(long
the UIDVALIDITY
uidvalidity
,
long
the MODSEQ
modseq
,
long[]
the UID values
uids
)

Used to limit the reported message changes to those with the specified UIDs.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the MODSEQ value
getModSeq
()

Get the MODSEQ value specified when this instance was created.

pack-priv UIDSet[]
public long

Returns:

the UIDVALIDITY value
getUIDValidity
()

Get the UIDVALIDITY value specified when this instance was created.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONDSTOREback to summary
public static final ResyncData CONDSTORE

Used to enable only the CONDSTORE extension.

modseqback to summary
private long modseq
uidsback to summary
private UIDSet[] uids
uidvalidityback to summary
private long uidvalidity

Constructor Detail

ResyncDataback to summary
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:long

the UIDVALIDITY

modseq:long

the MODSEQ

ResyncDataback to summary
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:long

the UIDVALIDITY

modseq:long

the MODSEQ

uidFirst:long

the first UID

uidLast:long

the last UID

ResyncDataback to summary
public ResyncData(long uidvalidity, long modseq, long[] uids)

Used to limit the reported message changes to those with the specified UIDs.

Parameters
uidvalidity:long

the UIDVALIDITY

modseq:long

the MODSEQ

uids:long[]

the UID values

Method Detail

getModSeqback to summary
public long getModSeq()

Get the MODSEQ value specified when this instance was created.

Returns:long

the MODSEQ value

getUIDSetback to summary
pack-priv UIDSet[] getUIDSet()
getUIDValidityback to summary
public long getUIDValidity()

Get the UIDVALIDITY value specified when this instance was created.

Returns:long

the UIDVALIDITY value