|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.mail Class Quota
java.lang.Objectjavax.mail.Quota
public class Quota
- extends Object
Inner classes:
Quota.Resource
此类表示用于给定配额根 (quota root) 的一组配额。每个配额根都有一个用
Quota.Resource 类表示的资源的集合。每个资源都有一个名称(例如 "STORAGE")、一个当前使用量和一个使用限制。请参见 RFC 2087。
| since |
| |
| version | 1.7, 07/05/04 |
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 |
Quota.Resource
An individual resource in a quota root. |
| Field Summary | |
|---|---|
String |
quotaRoot
The name of the quota root. |
Quota.Resource[] |
resources
The set of resources associated with this quota root. |
| Constructor Summary | |
|---|---|
Quota(String quotaRoot)
Create a Quota object for the named quotaroot with no associated resources. |
|
| Method Summary | |
|---|---|
void |
setResourceLimit(String name,
long limit)
Set a resource limit for this quota root. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 resourcelimit- the resource limit
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!
javax.mail.Quota