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. |