Package com.google.gerrit.server.quota
Class DefaultQuotaBackend
java.lang.Object
com.google.gerrit.server.quota.DefaultQuotaBackend
- All Implemented Interfaces:
QuotaBackend
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gerrit.server.quota.DefaultQuotaBackend.WithUser
Constructs a request for the current user.com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser
user
(CurrentUser user)
-
Method Details
-
currentUser
public com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser currentUser()Description copied from interface:QuotaBackend
Constructs a request for the current user.- Specified by:
currentUser
in interfaceQuotaBackend
-
user
Description copied from interface:QuotaBackend
SeeQuotaBackend.currentUser()
. Use this method only if you can't guarantee that the request is for the current user (e.g. impersonation).- Specified by:
user
in interfaceQuotaBackend
-