/** * How long to delay before retrying if the request is throttled. This will get doubled * for each attempt that is throttled. Unit is milliseconds. */ public HttpRequestBuilder withInitialRetryDelay(long delay) { Preconditions.checkArg(delay >= 0L, "initial retry delay must be >= 0"); this.initialRetryDelay = delay; return this; }
/** How many times to retry if the intial attempt fails? */ public HttpRequestBuilder withRetries(int n) { Preconditions.checkArg(n >= 0, "number of retries must be >= 0"); this.numAttempts = n + 1; return this; }
/** * How long to delay before retrying if the request is throttled. This will get doubled * for each attempt that is throttled. Unit is milliseconds. */ public HttpRequestBuilder withInitialRetryDelay(long delay) { Preconditions.checkArg(delay >= 0L, "initial retry delay must be >= 0"); this.initialRetryDelay = delay; return this; }
/** * How long to delay before retrying if the request is throttled. This will get doubled * for each attempt that is throttled. Unit is milliseconds. */ public HttpRequestBuilder withInitialRetryDelay(long delay) { Preconditions.checkArg(delay >= 0L, "initial retry delay must be >= 0"); this.initialRetryDelay = delay; return this; }
/** * How long to delay before retrying if the request is throttled. This will get doubled * for each attempt that is throttled. Unit is milliseconds. */ public HttpRequestBuilder withInitialRetryDelay(long delay) { Preconditions.checkArg(delay >= 0L, "initial retry delay must be >= 0"); this.initialRetryDelay = delay; return this; }
/** How many times to retry if the intial attempt fails? */ public HttpRequestBuilder withRetries(int n) { Preconditions.checkArg(n >= 0, "number of retries must be >= 0"); this.numAttempts = n + 1; return this; }
/** Create a new instance. */ GroupBy(AggregateFunction af, List<String> keys) { Preconditions.checkArg(!keys.isEmpty(), "key list for group by cannot be empty"); this.af = af; this.keys = keys; }
/** Create a new instance. */ DropRollup(AggregateFunction af, List<String> keys) { Preconditions.checkArg(!keys.contains("name"), "name is required and cannot be dropped"); this.af = af; this.keys = keys; }
/** How many times to retry if the intial attempt fails? */ public HttpRequestBuilder withRetries(int n) { Preconditions.checkArg(n >= 0, "number of retries must be >= 0"); this.numAttempts = n + 1; entry.withMaxAttempts(numAttempts); return this; }
/** How many times to retry if the intial attempt fails? */ public HttpRequestBuilder withRetries(int n) { Preconditions.checkArg(n >= 0, "number of retries must be >= 0"); this.numAttempts = n + 1; entry.withMaxAttempts(numAttempts); return this; }
/** Create a new instance. */ In(String k, Set<String> vs) { Preconditions.checkArg(!vs.isEmpty(), "list of values for :in cannot be empty"); this.k = Preconditions.checkNotNull(k, "k"); this.vs = Preconditions.checkNotNull(vs, "vs"); }