Package com.google.gerrit.server.quota
Class DefaultQuotaBackend
- java.lang.Object
-
- com.google.gerrit.server.quota.DefaultQuotaBackend
-
- All Implemented Interfaces:
QuotaBackend
public class DefaultQuotaBackend extends Object implements QuotaBackend
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser
currentUser()
Constructs a request for the current user.com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser
user(CurrentUser user)
-
-
-
Method Detail
-
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
public com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser user(CurrentUser 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
-
-