Id
- public interface UidProvider<Id>
Mailbox
. Be aware that implementations
need to be thread-safe!Modifier and Type | Method and Description |
---|---|
long |
lastUid(MailboxSession session,
Mailbox<Id> mailbox)
Return the last uid which were used for storing a Message in the
Mailbox |
long |
nextUid(MailboxSession session,
Mailbox<Id> mailbox)
Return the next uid which can be used while append a Message to the
Mailbox . |
long nextUid(MailboxSession session, Mailbox<Id> mailbox) throws MailboxException
Mailbox
.
Its important that the returned uid is higher then the last used and that the next call of this method does return a higher
onesession
- mailbox
- MailboxException
long lastUid(MailboxSession session, Mailbox<Id> mailbox) throws MailboxException
Mailbox
session
- mailbox
- MailboxException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.