@NonNull
    public RetryStrategy build(@RetryPolicy int policy, int initialBackoff, int maxBackoff) {
      RetryStrategy rs = new RetryStrategy(policy, initialBackoff, maxBackoff);
      validator.ensureValid(rs);
      return rs;
    }
Defines the list of acceptable retry policies.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/RetryStrategy.java