Gets a handle to the quota service. Note that the quota service
always exists, regardless of how many of its features are supported
by a particular app server. If a particular feature (like
QuotaService#getApiTimeInMegaCycles()) is not accessible, the
instance will not be able to provide that feature and throw an
appropriate exception.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eQuotaServiceFactory\u003c/code\u003e is the mechanism for obtaining an instance of the \u003ccode\u003eQuotaService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQuotaServiceFactory\u003c/code\u003e inherits members from the \u003ccode\u003ejava.lang.Object\u003c/code\u003e class, including methods like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetQuotaService()\u003c/code\u003e static method returns an instance of the \u003ccode\u003eQuotaService\u003c/code\u003e, which may not support all its features depending on the app server.\u003c/p\u003e\n"],["\u003cp\u003eThe QuotaService always exist, regardless of the features supported by the app server.\u003c/p\u003e\n"]]],[],null,["# Class QuotaServiceFactory (2.0.0)\n\n public class QuotaServiceFactory\n\nThe factory by which users acquire a handle to the QuotaService. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e QuotaServiceFactory \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### getQuotaService()\n\n public static QuotaService getQuotaService()\n\nGets a handle to the quota service. Note that the quota service\nalways exists, regardless of how many of its features are supported\nby a particular app server. If a particular feature (like\n[QuotaService#getApiTimeInMegaCycles()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.quota.QuotaService#com_google_appengine_api_quota_QuotaService_getApiTimeInMegaCycles__)) is not accessible, the\ninstance will not be able to provide that feature and throw an\nappropriate exception.\n\nConstructors\n------------\n\n### QuotaServiceFactory()\n\n public QuotaServiceFactory()"]]