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