javax.mail

Class Quota


public class Quota
extends java.lang.Object

A set of quotas for a given quota root.
Version:
1.4
Author:
Chris Burdess
Since:
JavaMail 1.4
See Also:
2087

Nested Class Summary

static class
Quota.Resource
An individual quota resource.

Field Summary

String
quotaRoot
The quota root.
Quota.Resource[]
resources
The resources associated with this quota.

Constructor Summary

Quota(String quotaRoot)
Constructor.

Method Summary

void
setResourceLimit(String name, long limit)
Sets a resource limit.

Field Details

quotaRoot

public String quotaRoot
The quota root.

resources

public Quota.Resource[] resources
The resources associated with this quota.

Constructor Details

Quota

public Quota(String quotaRoot)
Constructor.
Parameters:
quotaRoot - the quota root

Method Details

setResourceLimit

public void setResourceLimit(String name,
                             long limit)
Sets a resource limit.
Parameters:
name - the resource name
limit - the usage limit

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved