Id - public interface ModSeqProvider<Id>
Mailbox. Be aware that implementations
need to be thread-safe!| Modifier and Type | Method and Description |
|---|---|
long |
highestModSeq(MailboxSession session,
Mailbox<Id> mailbox)
Return the highest mod-sequence which were used for the
Mailbox |
long |
nextModSeq(MailboxSession session,
Mailbox<Id> mailbox)
Return the next mod-sequence which can be used for the
Mailbox. |
long nextModSeq(MailboxSession session, Mailbox<Id> mailbox) throws MailboxException
Mailbox.
Its important that the returned mod-sequence is higher then the last used and that the next call of this method does return a higher
one.
The first mod-seq must be >= 1session - mailbox - MailboxExceptionlong highestModSeq(MailboxSession session, Mailbox<Id> mailbox) throws MailboxException
Mailboxsession - mailbox - MailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.