public class InMemoryModSeqProvider extends Object implements ModSeqProvider<Long>
| Constructor and Description |
|---|
InMemoryModSeqProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
highestModSeq(MailboxSession session,
Mailbox<Long> mailbox)
Return the highest mod-sequence which were used for the
Mailbox |
long |
nextModSeq(MailboxSession session,
Mailbox<Long> mailbox)
Return the next mod-sequence which can be used for the
Mailbox. |
public long nextModSeq(MailboxSession session, Mailbox<Long> mailbox) throws MailboxException
ModSeqProviderMailbox.
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 >= 1nextModSeq in interface ModSeqProvider<Long>MailboxExceptionpublic long highestModSeq(MailboxSession session, Mailbox<Long> mailbox) throws MailboxException
ModSeqProviderMailboxhighestModSeq in interface ModSeqProvider<Long>MailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.