Package com.google.gerrit.server.account
Class AccountLimits
java.lang.Object
com.google.gerrit.server.account.AccountLimits
Limits which QoS a user runs as, and how many search results it can request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionint
Get the limit on aQueryProcessor
for a given user.Returns which priority queue the user's tasks should be submitted to.The range of permitted values associated with a label permission.boolean
hasExplicitRange
(String permission) Returns true if the user has a permission rule specifying the range.
-
Method Details
-
getQueueType
Returns which priority queue the user's tasks should be submitted to. -
getQueryLimit
public int getQueryLimit()Get the limit on aQueryProcessor
for a given user.- Returns:
- limit according to
GlobalCapability.QUERY_LIMIT
.
-
hasExplicitRange
Returns true if the user has a permission rule specifying the range. -
getRange
The range of permitted values associated with a label permission.
-