public class

Quota

extends Object
java.lang.Object
   ↳ com.google.code.javax.mail.Quota

Class Overview

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.

Summary

Nested Classes
class Quota.Resource An individual resource in a quota root. 
Fields
public String quotaRoot The name of the quota root.
public Resource[] resources The set of resources associated with this quota root.
Public Constructors
Quota(String quotaRoot)
Create a Quota object for the named quotaroot with no associated resources.
Public Methods
void setResourceLimit(String name, long limit)
Set a resource limit for this quota root.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public String quotaRoot

The name of the quota root.

public Resource[] resources

The set of resources associated with this quota root.

Public Constructors

public Quota (String quotaRoot)

Create a Quota object for the named quotaroot with no associated resources.

Parameters
quotaRoot The name of the quota root

Public Methods

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