QuotaMode
Stay organized with collections
Save and categorize content based on your preferences.
Supported quota enforcement modes.
Enums |
ACQUIRE |
Decreases available quota by the cost specified for the operation. If cost is higher than available quota, operation fails and returns error. |
ACQUIRE_BEST_EFFORT |
Decreases available quota by the cost specified for the operation. If cost is higher than available quota, operation does not fail and available quota goes down to zero but it returns error. |
CHECK |
Does not change any available quota. Only checks if there is enough quota. No lock is placed on the checked tokens neither. |
RELEASE |
Increases available quota by the operation cost specified for the operation. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-12-10 UTC.
[[["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 2020-12-10 UTC."],[],[]]