public abstract class AbstractMailboxSessionIdGenerator extends Object implements MailboxSessionIdGenerator
Constructor and Description |
---|
AbstractMailboxSessionIdGenerator() |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
generateNextId()
Generate the next id to use
|
long |
nextId()
Return the next id to use for a
MailboxSession . |
public long nextId()
MailboxSessionIdGenerator
MailboxSession
. The id must be unique
while the server is running and can be any long except MailboxSession.SYSTEM_SESSION_ID
.
The returned ids can be in any specific order.nextId
in interface MailboxSessionIdGenerator
protected abstract long generateNextId()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.