public static class Quota.Resource
extends java.lang.Object
| Constructor and Description |
|---|
Quota.Resource(java.lang.String name,
int limit)
Specifies a new resource with the given name and limit.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentUsage()
Returns the current usage of the resource, or
-1 if not
known. |
int |
getLimit()
Returns the resource limit.
|
java.lang.String |
getName()
Returns the resource name.
|
java.lang.String |
toString()
Debugging.
|
public Quota.Resource(java.lang.String name,
int limit)
name - the resource namelimit - the resource limitpublic java.lang.String getName()
public int getCurrentUsage()
-1 if not
known.public int getLimit()
public java.lang.String toString()
toString in class java.lang.Object© Copyright 2003 The Free Software Foundation, all rights reserved