public class FixedQuotaManager extends ListeningQuotaManager
ListeningQuotaManager which use the same quota for all users.
By default this means not quota at allMailboxListener.Added, MailboxListener.Event, MailboxListener.Expunged, MailboxListener.FlagsUpdated, MailboxListener.MailboxACLUpdated, MailboxListener.MailboxAdded, MailboxListener.MailboxDeletion, MailboxListener.MailboxRenamed, MailboxListener.MessageEvent| Constructor and Description |
|---|
FixedQuotaManager(StoreMailboxManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getMaxMessage(MailboxSession session)
Return the maximum message count which is allowed for the given
MailboxSession (in fact the user which the session is bound to) |
protected long |
getMaxStorage(MailboxSession session)
Return the maximum storage which is allowed for the given
MailboxSession (in fact the user which the session is bound to)
The returned valued must be in bytes |
void |
setMaxMessage(long maxMessage) |
void |
setMaxStorage(long maxStorage) |
event, getFactory, getMessageQuota, getStorageQuota, isClosed, setCalculateUsedWhenUnlimitedpublic FixedQuotaManager(StoreMailboxManager manager) throws MailboxException
MailboxExceptionpublic void setMaxStorage(long maxStorage)
public void setMaxMessage(long maxMessage)
protected long getMaxStorage(MailboxSession session) throws MailboxException
ListeningQuotaManagerMailboxSession (in fact the user which the session is bound to)
The returned valued must be in bytesgetMaxStorage in class ListeningQuotaManagerMailboxExceptionprotected long getMaxMessage(MailboxSession session) throws MailboxException
ListeningQuotaManagerMailboxSession (in fact the user which the session is bound to)getMaxMessage in class ListeningQuotaManagerMailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.