Stay organized with collections
Save and categorize content based on your preferences.
publicinterfaceIQuotaServiceFactory
The factory by which users acquire a handle to the QuotaService.
Methods
getQuotaService()
publicabstractQuotaServicegetQuotaService()
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
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\u003eIQuotaServiceFactory\u003c/code\u003e is the interface for obtaining a \u003ccode\u003eQuotaService\u003c/code\u003e handle.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetQuotaService()\u003c/code\u003e method provides access to the \u003ccode\u003eQuotaService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuotaService\u003c/code\u003e instance will always exist, regardless of feature support.\u003c/p\u003e\n"],["\u003cp\u003eIf a specific feature is not supported, the \u003ccode\u003eQuotaService\u003c/code\u003e instance will throw an exception when that feature is attempted to be accessed.\u003c/p\u003e\n"]]],[],null,["# Interface IQuotaServiceFactory (2.0.0)\n\n public interface IQuotaServiceFactory\n\nThe factory by which users acquire a handle to the QuotaService.\n\nMethods\n-------\n\n### getQuotaService()\n\n public abstract 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\nthe instance will not be able to provide that feature and throw an\nappropriate exception."]]