Subversion Repositories javautils

Rev

Blame | Last modification | View Log | RSS feed

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_10) on Tue Nov 17 12:13:38 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. Quota.Resource (JavaMail API documentation)
  9. </TITLE>
  10.  
  11. <META NAME="date" CONTENT="2009-11-17">
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
  14.  
  15. <SCRIPT type="text/javascript">
  16. function windowTitle()
  17. {
  18.     if (location.href.indexOf('is-external=true') == -1) {
  19.         parent.document.title="Quota.Resource (JavaMail API documentation)";
  20.     }
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. </NOSCRIPT>
  25.  
  26. </HEAD>
  27.  
  28. <BODY BGCOLOR="white" onload="windowTitle();">
  29. <HR>
  30.  
  31.  
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <A NAME="navbar_top"><!-- --></A>
  34. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  35. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  36. <TR>
  37. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  38. <A NAME="navbar_top_firstrow"><!-- --></A>
  39. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  40.   <TR ALIGN="center" VALIGN="top">
  41.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  42.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  43.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  44.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Quota.Resource.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  45.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  46.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  47.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  48.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  49.   </TR>
  50. </TABLE>
  51. </TD>
  52. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  53. </EM>
  54. </TD>
  55. </TR>
  56.  
  57. <TR>
  58. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  59. &nbsp;<A HREF="../../javax/mail/Quota.html" title="class in javax.mail"><B>PREV CLASS</B></A>&nbsp;
  60. &nbsp;<A HREF="../../javax/mail/QuotaAwareStore.html" title="interface in javax.mail"><B>NEXT CLASS</B></A></FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../index.html?javax/mail/Quota.Resource.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="Quota.Resource.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  64. &nbsp;<SCRIPT type="text/javascript">
  65.   <!--
  66.   if(window==top) {
  67.     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  68.   }
  69.   //-->
  70. </SCRIPT>
  71. <NOSCRIPT>
  72.   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  73. </NOSCRIPT>
  74.  
  75.  
  76. </FONT></TD>
  77. </TR>
  78. <TR>
  79. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  80.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD>
  81. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  82. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;METHOD</FONT></TD>
  83. </TR>
  84. </TABLE>
  85. <A NAME="skip-navbar_top"></A>
  86. <!-- ========= END OF TOP NAVBAR ========= -->
  87.  
  88. <HR>
  89. <!-- ======== START OF CLASS DATA ======== -->
  90. <H2>
  91. <FONT SIZE="-1">
  92. javax.mail</FONT>
  93. <BR>
  94. Class Quota.Resource</H2>
  95. <PRE>
  96. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  97.   <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>javax.mail.Quota.Resource</B>
  98. </PRE>
  99. <DL>
  100. <DT><B>Enclosing class:</B><DD><A HREF="../../javax/mail/Quota.html" title="class in javax.mail">Quota</A></DD>
  101. </DL>
  102. <HR>
  103. <DL>
  104. <DT><PRE>public static class <B>Quota.Resource</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
  105. </PRE>
  106.  
  107. <P>
  108. An individual resource in a quota root.
  109. <P>
  110.  
  111. <P>
  112. <DL>
  113. <DT><B>Since:</B></DT>
  114.   <DD>JavaMail 1.4</DD>
  115. </DL>
  116. <HR>
  117.  
  118. <P>
  119. <!-- =========== FIELD SUMMARY =========== -->
  120.  
  121. <A NAME="field_summary"><!-- --></A>
  122. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  123. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  124. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  125. <B>Field Summary</B></FONT></TH>
  126. </TR>
  127. <TR BGCOLOR="white" CLASS="TableRowColor">
  128. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  129. <CODE>&nbsp;long</CODE></FONT></TD>
  130. <TD><CODE><B><A HREF="../../javax/mail/Quota.Resource.html#limit">limit</A></B></CODE>
  131.  
  132. <BR>
  133. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The usage limit for the resource.</TD>
  134. </TR>
  135. <TR BGCOLOR="white" CLASS="TableRowColor">
  136. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  137. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  138. <TD><CODE><B><A HREF="../../javax/mail/Quota.Resource.html#name">name</A></B></CODE>
  139.  
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The name of the resource.</TD>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  145. <CODE>&nbsp;long</CODE></FONT></TD>
  146. <TD><CODE><B><A HREF="../../javax/mail/Quota.Resource.html#usage">usage</A></B></CODE>
  147.  
  148. <BR>
  149. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The current usage of the resource.</TD>
  150. </TR>
  151. </TABLE>
  152. &nbsp;
  153. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  154.  
  155. <A NAME="constructor_summary"><!-- --></A>
  156. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  157. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  158. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  159. <B>Constructor Summary</B></FONT></TH>
  160. </TR>
  161. <TR BGCOLOR="white" CLASS="TableRowColor">
  162. <TD><CODE><B><A HREF="../../javax/mail/Quota.Resource.html#Quota.Resource(java.lang.String, long, long)">Quota.Resource</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name,
  163.                long&nbsp;usage,
  164.                long&nbsp;limit)</CODE>
  165.  
  166. <BR>
  167. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a Resource object with the given name,
  168.  usage, and limit.</TD>
  169. </TR>
  170. </TABLE>
  171. &nbsp;
  172. <!-- ========== METHOD SUMMARY =========== -->
  173.  
  174. <A NAME="method_summary"><!-- --></A>
  175. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  176. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  177. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  178. <B>Method Summary</B></FONT></TH>
  179. </TR>
  180. </TABLE>
  181. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  182. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  183. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  184. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  185. </TR>
  186. <TR BGCOLOR="white" CLASS="TableRowColor">
  187. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  188. </TR>
  189. </TABLE>
  190. &nbsp;
  191. <P>
  192.  
  193. <!-- ============ FIELD DETAIL =========== -->
  194.  
  195. <A NAME="field_detail"><!-- --></A>
  196. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  197. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  198. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  199. <B>Field Detail</B></FONT></TH>
  200. </TR>
  201. </TABLE>
  202.  
  203. <A NAME="name"><!-- --></A><H3>
  204. name</H3>
  205. <PRE>
  206. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>name</B></PRE>
  207. <DL>
  208. <DD>The name of the resource.
  209. <P>
  210. <DL>
  211. </DL>
  212. </DL>
  213. <HR>
  214.  
  215. <A NAME="usage"><!-- --></A><H3>
  216. usage</H3>
  217. <PRE>
  218. public long <B>usage</B></PRE>
  219. <DL>
  220. <DD>The current usage of the resource.
  221. <P>
  222. <DL>
  223. </DL>
  224. </DL>
  225. <HR>
  226.  
  227. <A NAME="limit"><!-- --></A><H3>
  228. limit</H3>
  229. <PRE>
  230. public long <B>limit</B></PRE>
  231. <DL>
  232. <DD>The usage limit for the resource.
  233. <P>
  234. <DL>
  235. </DL>
  236. </DL>
  237.  
  238. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  239.  
  240. <A NAME="constructor_detail"><!-- --></A>
  241. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  242. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  243. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  244. <B>Constructor Detail</B></FONT></TH>
  245. </TR>
  246. </TABLE>
  247.  
  248. <A NAME="Quota.Resource(java.lang.String, long, long)"><!-- --></A><H3>
  249. Quota.Resource</H3>
  250. <PRE>
  251. public <B>Quota.Resource</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name,
  252.                       long&nbsp;usage,
  253.                       long&nbsp;limit)</PRE>
  254. <DL>
  255. <DD>Construct a Resource object with the given name,
  256.  usage, and limit.
  257. <P>
  258. <DL>
  259. <DT><B>Parameters:</B><DD><CODE>name</CODE> - the resource name<DD><CODE>usage</CODE> - the current usage of the resource<DD><CODE>limit</CODE> - the usage limit for the resource</DL>
  260. </DL>
  261. <!-- ========= END OF CLASS DATA ========= -->
  262. <HR>
  263.  
  264.  
  265. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  266. <A NAME="navbar_bottom"><!-- --></A>
  267. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  268. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  269. <TR>
  270. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  271. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  272. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  273.   <TR ALIGN="center" VALIGN="top">
  274.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  275.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  276.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  277.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Quota.Resource.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  278.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  279.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  280.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  281.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  282.   </TR>
  283. </TABLE>
  284. </TD>
  285. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  286. </EM>
  287. </TD>
  288. </TR>
  289.  
  290. <TR>
  291. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  292. &nbsp;<A HREF="../../javax/mail/Quota.html" title="class in javax.mail"><B>PREV CLASS</B></A>&nbsp;
  293. &nbsp;<A HREF="../../javax/mail/QuotaAwareStore.html" title="interface in javax.mail"><B>NEXT CLASS</B></A></FONT></TD>
  294. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  295.   <A HREF="../../index.html?javax/mail/Quota.Resource.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  296. &nbsp;<A HREF="Quota.Resource.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  297. &nbsp;<SCRIPT type="text/javascript">
  298.   <!--
  299.   if(window==top) {
  300.     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  301.   }
  302.   //-->
  303. </SCRIPT>
  304. <NOSCRIPT>
  305.   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  306. </NOSCRIPT>
  307.  
  308.  
  309. </FONT></TD>
  310. </TR>
  311. <TR>
  312. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  313.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD>
  314. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  315. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;METHOD</FONT></TD>
  316. </TR>
  317. </TABLE>
  318. <A NAME="skip-navbar_bottom"></A>
  319. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  320.  
  321. <HR>
  322. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  323. </BODY>
  324. </HTML>
  325.