Nitido Inc.

com.nitido.nimx.nuggets.javamail
Class Usage

java.lang.Object
  extended by com.nitido.nimx.nuggets.javamail.Usage
All Implemented Interfaces:
java.io.Serializable

public class Usage
extends java.lang.Object
implements java.io.Serializable

The data object that encapsulate the mail box usage information.

See Also:
Serialized Form

Field Summary
 long msgQuota
          The maximum number of message allowed in the mailbox.
 long msgUsed
          The number of messages stored in the mailbox currently.
 long spaceQuota
          The usage quota of the mail box.
 long spaceUsed
          The amount of space used from the mail box.
 
Constructor Summary
Usage(long newSpaceUsed, long newSpaceQuota, long newMsgUsed, long newMsgQuota)
          Default constructor.
 
Method Summary
 java.lang.String toString()
          Format the content of this object into string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

spaceUsed

public long spaceUsed
The amount of space used from the mail box.


spaceQuota

public long spaceQuota
The usage quota of the mail box.


msgUsed

public long msgUsed
The number of messages stored in the mailbox currently.


msgQuota

public long msgQuota
The maximum number of message allowed in the mailbox.

Constructor Detail

Usage

public Usage(long newSpaceUsed,
             long newSpaceQuota,
             long newMsgUsed,
             long newMsgQuota)
Default constructor.

Parameters:
newSpaceUsed - the amount of space used
newSpaceQuota - the amount of space allowed.
newMsgUsed - the number of message used.
newMsgQuota - the maximum number of message allowed.
Method Detail

toString

public java.lang.String toString()
Format the content of this object into string. The format would be "[space=USED/QUOTA, msg=USED/QUOTA]".

Overrides:
toString in class java.lang.Object

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.