Package com.google.gerrit.server.update
Class RetryHelper.Options
java.lang.Object
com.google.gerrit.server.update.RetryHelper.Options
- Enclosing class:
- RetryHelper
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 -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Options
public Options()
-