public class Quota extends Object
Quota.Resource class. Each resource has a name
(for example, "STORAGE"), a current usage, and a usage limit.
See RFC 2087.| 限定符和类型 | 类和说明 |
|---|---|
static class |
Quota.Resource
An individual resource in a quota root.
|
| 限定符和类型 | 字段和说明 |
|---|---|
String |
quotaRoot
The name of the quota root.
|
Quota.Resource[] |
resources
The set of resources associated with this quota root.
|
public String quotaRoot
public Quota.Resource[] resources
public Quota(String quotaRoot)
quotaRoot - the name of the quota rootpublic void setResourceLimit(String name, long limit)
name - the name of the resourcelimit - the resource limitCopyright © 2021 Oracle. All rights reserved.