This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.mail
class Quota

javax.mail.Quota

public class Quota
extends Object

This class represents a set of quotas for a given quota root. Each quota root has a set of resources, represented by the Quota.Resource class. Each resource has a name (for example, "STORAGE"), a current usage, and a usage limit. See RFC 2087.


Nested Class Summary
static class

           An individual resource in a quota root.
 
Field Summary
 String quotaRoot
          The name of the quota root.
 Quota.Resource[] resources
          The set of resources associated with this quota root.
 
Constructor Summary
Quota(String quotaRoot)

          Create a Quota object for the named quotaroot with no associated resources.
 
Method Summary
 void
setResourceLimit(String name, long limit)

          Set a resource limit for this quota root.
 

Field Detail

quotaRoot

public String quotaRoot
The name of the quota root.

resources

public Quota.Resource[] resources
The set of resources associated with this quota root.
Constructor Detail

Quota

public Quota(String quotaRoot)
Create a Quota object for the named quotaroot with no associated resources.

Parameters:
quotaRoot - the name of the quota root
Method Detail

setResourceLimit

public void setResourceLimit(String name,
                             long limit)
Set a resource limit for this quota root.

Parameters:
name - the name of the resource
limit - the resource limit


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.