Class 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 with RetryerBuilder 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.
    • Constructor Detail

      • Options

        public Options()