public class Quota
extends java.lang.Object
Quota.Resource
class. Each resource has a name
(for example, "STORAGE"), a current usage, and a usage limit.
See RFC 2087.Modifier and Type | Class | Description |
---|---|---|
static class |
Quota.Resource |
An individual resource in a quota root.
|
Modifier and Type | Field | Description |
---|---|---|
java.lang.String |
quotaRoot |
The name of the quota root.
|
Quota.Resource[] |
resources |
The set of resources associated with this quota root.
|
Constructor | Description |
---|---|
Quota(java.lang.String quotaRoot) |
Create a Quota object for the named quotaroot with no associated
resources.
|
Modifier and Type | Method | Description |
---|---|---|
void |
setResourceLimit(java.lang.String name,
long limit) |
Set a resource limit for this quota root.
|
public java.lang.String quotaRoot
public Quota.Resource[] resources
Copyright © 2018 Oracle. All rights reserved.