public class JCRModSeqProvider extends AbstractLockingModSeqProvider<String>
Constructor and Description |
---|
JCRModSeqProvider(MailboxPathLocker locker,
MailboxSessionJCRRepository repository) |
Modifier and Type | Method and Description |
---|---|
long |
highestModSeq(MailboxSession session,
Mailbox<String> mailbox)
Return the highest mod-sequence which were used for the
Mailbox |
protected long |
lockedNextModSeq(MailboxSession session,
Mailbox<String> mailbox)
Generate the next mod-seq for the given
Mailbox while holding a lock on it. |
nextModSeq
public JCRModSeqProvider(MailboxPathLocker locker, MailboxSessionJCRRepository repository)
public long highestModSeq(MailboxSession session, Mailbox<String> mailbox) throws MailboxException
ModSeqProvider
Mailbox
MailboxException
protected long lockedNextModSeq(MailboxSession session, Mailbox<String> mailbox) throws MailboxException
AbstractLockingModSeqProvider
Mailbox
while holding a lock on it.lockedNextModSeq
in class AbstractLockingModSeqProvider<String>
MailboxException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.