Package javax.mail

Class Quota


  • public class Quota
    extends java.lang.Object
    A set of quotas for a given quota root.
    Since:
    JavaMail 1.4
    Version:
    1.4
    Author:
    Chris Burdess
    See Also:
    2087
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Quota.Resource
      An individual quota resource.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String quotaRoot
      The quota root.
      Quota.Resource[] resources
      The resources associated with this quota.
    • Constructor Summary

      Constructors 
      Constructor Description
      Quota​(java.lang.String quotaRoot)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setResourceLimit​(java.lang.String name, long limit)
      Sets a resource limit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • quotaRoot

        public java.lang.String quotaRoot
        The quota root.
      • resources

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

      • Quota

        public Quota​(java.lang.String quotaRoot)
        Constructor.
        Parameters:
        quotaRoot - the quota root
    • Method Detail

      • setResourceLimit

        public void setResourceLimit​(java.lang.String name,
                                     long limit)
        Sets a resource limit.
        Parameters:
        name - the resource name
        limit - the usage limit