public class HBaseUidProvider extends Object implements UidProvider<UUID>
| Constructor and Description |
|---|
HBaseUidProvider(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
long |
lastUid(MailboxSession session,
Mailbox<UUID> mailbox)
Returns the last message uid used in a mailbox.
|
long |
nextUid(MailboxSession session,
Mailbox<UUID> mailbox)
Returns the next uid.
|
public HBaseUidProvider(org.apache.hadoop.conf.Configuration conf)
public long lastUid(MailboxSession session, Mailbox<UUID> mailbox) throws MailboxException
lastUid in interface UidProvider<UUID>session - the sessionmailbox - the mailbox for which to get the last uidMailboxExceptionpublic long nextUid(MailboxSession session, Mailbox<UUID> mailbox) throws MailboxException
nextUid in interface UidProvider<UUID>session - the mailbox sessionmailbox - the mailbox for which we are getting the next uid.MailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.