Package jakarta.mail

Class Quota

java.lang.Object
jakarta.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.
Since:
JavaMail 1.4
Author:
Bill Shannon
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An individual resource in a quota root.
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    The name of the quota root.
    The set of resources associated with this quota root.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Quota(String quotaRoot)
    Create a Quota object for the named quotaroot with no associated resources.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    setResourceLimit(String name, long limit)
    Set a resource limit for this quota root.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • quotaRoot Link icon

      public String quotaRoot
      The name of the quota root.
    • resources Link icon

      public Quota.Resource[] resources
      The set of resources associated with this quota root.
  • Constructor Details Link icon

    • Quota Link icon

      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 Details Link icon

    • setResourceLimit Link icon

      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