public class Quota extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Quota.Resource
A representation of a given resource definition.
|
| Modifier and Type | Field and Description |
|---|---|
String |
quotaRoot
The name of the quota root.
|
Quota.Resource[] |
resources
The resources associated with this quota root.
|
| Constructor and Description |
|---|
Quota(String quotaRoot)
Create a Quota with the given name and no resources.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setResourceLimit(String name,
long limit)
Set a limit value for a resource.
|
public String quotaRoot
public Quota.Resource[] resources
public Quota(String quotaRoot)
quotaRoot - The quota root name.public void setResourceLimit(String name, long limit)
name - The target resource name.limit - The new limit value for the resource.Copyright © 2022. All rights reserved.