- java.lang.Object
- 
- jakarta.mail.Quota
 
- 
 public class Quota extends java.lang.ObjectThis class represents a set of quotas for a given quota root. Each quota root has a set of resources, represented by theQuota.Resourceclass. Each resource has a name (for example, "STORAGE"), a current usage, and a usage limit. See RFC 2087.- Author:
- Bill Shannon
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classQuota.ResourceAn individual resource in a quota root.
 - 
Field SummaryFields Modifier and Type Field Description java.lang.StringquotaRootThe name of the quota root.Quota.Resource[]resourcesThe set of resources associated with this quota root.
 - 
Constructor SummaryConstructors Constructor Description Quota(java.lang.String quotaRoot)Create a Quota object for the named quotaroot with no associated resources.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetResourceLimit(java.lang.String name, long limit)Set a resource limit for this quota root.
 
- 
- 
- 
Field Detail- 
quotaRootpublic java.lang.String quotaRoot The name of the quota root.
 - 
resourcespublic Quota.Resource[] resources The set of resources associated with this quota root.
 
- 
 
-