gnu.inet.imap
Class Quota.Resource
java.lang.Object
gnu.inet.imap.Quota.Resource
- Quota
public static class Quota.Resource
extends java.lang.Object
A quota resource entry.
Resource(String name, int limit) - Specifies a new resource with the given name and limit.
|
int | getCurrentUsage() - Returns the current usage of the resource, or
-1 if not
known.
|
int | getLimit() - Returns the resource limit.
|
String | getName() - Returns the resource name.
|
String | toString() - Debugging.
|
Resource
public Resource(String name,
int limit)
Specifies a new resource with the given name and limit.
name
- the resource namelimit
- the resource limit
getCurrentUsage
public int getCurrentUsage()
Returns the current usage of the resource, or -1
if not
known.
getLimit
public int getLimit()
Returns the resource limit.
getName
public String getName()
Returns the resource name.
toString
public String toString()
Debugging.
© Copyright 2003 The Free Software Foundation,
all rights reserved