Package com.google.gerrit.server.quota
Class QuotaResponse.Aggregated
- java.lang.Object
-
- com.google.gerrit.server.quota.QuotaResponse.Aggregated
-
- Enclosing class:
- QuotaResponse
public abstract static class QuotaResponse.Aggregated extends Object
-
-
Constructor Summary
Constructors Constructor Description Aggregated()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<QuotaResponse>
all()
OptionalLong
availableTokens()
static QuotaResponse.Aggregated
create(Collection<QuotaResponse> responses)
com.google.common.collect.ImmutableList<QuotaResponse>
error()
String
errorMessage()
boolean
hasError()
com.google.common.collect.ImmutableList<QuotaResponse>
ok()
protected abstract com.google.common.collect.ImmutableList<QuotaResponse>
responses()
void
throwOnError()
-
-
-
Method Detail
-
create
public static QuotaResponse.Aggregated create(Collection<QuotaResponse> responses)
-
responses
protected abstract com.google.common.collect.ImmutableList<QuotaResponse> responses()
-
hasError
public boolean hasError()
-
all
public com.google.common.collect.ImmutableList<QuotaResponse> all()
-
ok
public com.google.common.collect.ImmutableList<QuotaResponse> ok()
-
availableTokens
public OptionalLong availableTokens()
-
error
public com.google.common.collect.ImmutableList<QuotaResponse> error()
-
errorMessage
public String errorMessage()
-
throwOnError
public void throwOnError() throws QuotaException
- Throws:
QuotaException
-
-