Package com.google.gerrit.server.update
Class RetryHelper.Options
- java.lang.Object
-
- com.google.gerrit.server.update.RetryHelper.Options
-
- Enclosing class:
- RetryHelper
public abstract static class RetryHelper.Options extends Object
Options for retrying a single operation.This class is similar in function to upstream's
RetryerBuilder
, but it exists as its own class in Gerrit for several reasons:- Gerrit needs to support defaults for some of the options, such as a default timeout.
RetryerBuilder
doesn't support calling the same setter multiple times, so doing this withRetryerBuilder
directly would not be easy. - Gerrit explicitly does not want callers to have full control over all possible options, so this class exposes a curated subset.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RetryHelper.Options.Builder
-
Constructor Summary
Constructors Constructor Description Options()
-