Package javax.mail

Interface QuotaAwareStore


  • public interface QuotaAwareStore
    Interface implemented by mail stores that support quotas.
    Since:
    JavaMail 1.4
    Version:
    1.4
    Author:
    Chris Burdess
    See Also:
    2087
    • Method Detail

      • getQuota

        Quota[] getQuota​(java.lang.String root)
                  throws MessagingException
        Returns the quotas for the given quota root.
        Parameters:
        root - the quota root
        Throws:
        MessagingException - if the QUOTA extension is not supported
      • setQuota

        void setQuota​(Quota quota)
               throws MessagingException
        Sets the quotas for the quota root specified in the quota argument.
        Parameters:
        quota - the quota
        Throws:
        MessagingException - if the QUOTA extension is not supported