gnu.inet.imap

Class Quota.Resource

Enclosing Class:
Quota

public static class Quota.Resource
extends java.lang.Object

A quota resource entry.

Constructor Summary

Resource(String name, int limit)
Specifies a new resource with the given name and limit.

Method Summary

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.

Constructor Details

Resource

public Resource(String name,
                int limit)
Specifies a new resource with the given name and limit.

Parameters:
name - the resource name
limit - the resource limit

Method Details

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