Package javax.mail

Class Quota.Resource

  • Enclosing class:
    Quota

    public static class Quota.Resource
    extends java.lang.Object
    An individual quota resource.
    Since:
    JavaMail 1.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long limit
      The usage limit for the resource.
      java.lang.String name
      The resource name.
      long usage
      The current resource usage.
    • Constructor Summary

      Constructors 
      Constructor Description
      Resource​(java.lang.String name, long usage, long limit)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • name

        public java.lang.String name
        The resource name.
      • usage

        public long usage
        The current resource usage.
      • limit

        public long limit
        The usage limit for the resource.
    • Constructor Detail

      • Resource

        public Resource​(java.lang.String name,
                        long usage,
                        long limit)
        Constructor.
        Parameters:
        name - the resource name
        usage - the current usage
        limit - the usage limit