javax.mail

Class Quota

public class Quota extends Object

A set of quotas for a given quota root.

Since: JavaMail 1.4

Version: 1.4

Author: Chris Burdess

See Also: RFC 2087

Nested Class Summary
static classQuota.Resource
An individual quota resource.
Field Summary
StringquotaRoot
The quota root.
Quota.Resource[]resources
The resources associated with this quota.
Constructor Summary
Quota(String quotaRoot)
Constructor.
Method Summary
voidsetResourceLimit(String name, long limit)
Sets a resource limit.

Field Detail

quotaRoot

public String quotaRoot
The quota root.

resources

public Quota.Resource[] resources
The resources associated with this quota.

Constructor Detail

Quota

public Quota(String quotaRoot)
Constructor.

Parameters: quotaRoot the quota root

Method Detail

setResourceLimit

public void setResourceLimit(String name, long limit)
Sets a resource limit.

Parameters: name the resource name limit the usage limit

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved