javax.mail
Class Quota

java.lang.Object
  extended by javax.mail.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
static class Quota.Resource
          An individual quota resource.
 
Field Summary
 java.lang.String quotaRoot
          The quota root.
 Quota.Resource[] resources
          The resources associated with this quota.
 
Constructor Summary
Quota(java.lang.String quotaRoot)
          Constructor.
 
Method Summary
 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


© Copyright 2003, 2004 The Free Software Foundation, All rights reserved