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
ModSeqProvider
Mailbox
highestModSeq
in interface ModSeqProvider<UUID>
MailboxException
public long nextModSeq(MailboxSession session, Mailbox<UUID> mailbox) throws MailboxException
ModSeqProvider
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 >= 1nextModSeq
in interface ModSeqProvider<UUID>
MailboxException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.