Quota (Java EE 5)

Java EE API


javax.mail Class Quota

java.lang.Object
  extended by javax.mail.Quota

public class Quota
extends Object

Inner classes: Quota.Resource

此类表示用于给定配额根 (quota root) 的一组配额。每个配额根都有一个用 Quota.Resource 类表示的资源的集合。每个资源都有一个名称(例如 "STORAGE")、一个当前使用量和一个使用限制。请参见 RFC 2087。
英文文档:

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
Version:
1.7, 07/05/04
Author:
Bill Shannon

Nested Class Summary
static class
 
Field Summary
 String
 Quota.Resource[]
 
Constructor Summary
 
Method Summary
 void
 
Methods inherited from class java.lang.Object
 

Field Detail

英文文档:

quotaRoot

public String quotaRoot
The name of the quota root.


英文文档:

resources

public Quota.Resource[] resources
The set of resources associated with this quota root.

Constructor Detail

public Quota(String quotaRoot)
为指定的配额根创建 Quota 对象,不带任何关联的资源。
quotaRoot 配额根的名称
英文文档:

Quota

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 Detail

public void setResourceLimit(String name, long limit)
为此配额根设置资源限制。
name 资源的名称
limit 资源限制
英文文档:

setResourceLimit

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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!