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